aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-11 16:00:36 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-11 16:00:36 -0700
commit753b1f7edafb264b6ad6db97d2f483bc9f5ba7e2 (patch)
tree3bdb9d6166ad66b6f8beb6668f493170c07daa57
parentb793e04cf56b778dd1fda0631e02aa5a8a1932f0 (diff)
add debug logging in emscripten.py of text sizes
-rwxr-xr-xemscripten.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py
index 34a5b20f..bbc4f76d 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -408,7 +408,11 @@ var i64Math_modulo = function(a, b, c, d, e) { i64Math.modulo(a, b, c, d, e) };
receiving = ';\n'.join(['var ' + s + ' = Module["' + s + '"] = asm.' + s for s in exported_implemented_functions + function_tables])
else:
receiving = 'var _main = Module["_main"] = asm;'
+
# finalize
+
+ if DEBUG: print >> sys.stderr, 'asm text sizes', len(funcs_js), len(asm_setup), len(asm_global_vars), len(asm_global_funcs), len(pre_tables), len('\n'.join(function_tables_impls)), len(function_tables_defs.replace('\n', '\n ')), len(exports), len(the_global), len(sending), len(receiving)
+
funcs_js = '''
%s
function asmPrintInt(x, y) {