From 9dcc6f2bc51375fee72b5d99f33184b8c0e81ac4 Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Sun, 10 Oct 2021 12:51:35 +0100 Subject: [PATCH] size comparison tweaks --- compiler/gen_wasm/.gitignore | 1 + compiler/gen_wasm/test-compare.sh | 4 ++-- compiler/gen_wasm/tests/helpers/eval.rs | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/gen_wasm/.gitignore b/compiler/gen_wasm/.gitignore index 64bbb919fa..bd517f6c96 100644 --- a/compiler/gen_wasm/.gitignore +++ b/compiler/gen_wasm/.gitignore @@ -1,3 +1,4 @@ *.wasm *.wat /notes.md +/tmp diff --git a/compiler/gen_wasm/test-compare.sh b/compiler/gen_wasm/test-compare.sh index fcc1fdbe7a..37286cd3e3 100755 --- a/compiler/gen_wasm/test-compare.sh +++ b/compiler/gen_wasm/test-compare.sh @@ -10,8 +10,8 @@ fi OVERHEAD_BYTES=114 # total file size minus generated code size (test wrapper + module headers) -printf "filename\tLHS\tRHS\tchange\n" -printf "========\t===\t===\t======\n" +printf "filename \tLHS\tRHS\tchange\n" +printf "======== \t===\t===\t======\n" for f in `ls $1/wasm` do diff --git a/compiler/gen_wasm/tests/helpers/eval.rs b/compiler/gen_wasm/tests/helpers/eval.rs index 044a8f5774..a3d011eb18 100644 --- a/compiler/gen_wasm/tests/helpers/eval.rs +++ b/compiler/gen_wasm/tests/helpers/eval.rs @@ -121,6 +121,8 @@ pub fn helper_wasm<'a, T: Wasm32TestResult>( src_hash ); + println!("dumping file {:?}", path); + match std::fs::File::create(path) { Err(e) => eprintln!("Problem creating wasm debug file: {:?}", e), Ok(mut file) => {