From 202a13e9bb409cf320dd19f3aff48b77ba934fb2 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 26 Feb 2014 15:23:49 -0800 Subject: add debug printout regarding chunkification in js optimizer --- tools/js_optimizer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py index 9ba6643b..d6c705cd 100644 --- a/tools/js_optimizer.py +++ b/tools/js_optimizer.py @@ -212,6 +212,7 @@ EMSCRIPTEN_FUNCS(); chunk_size = min(MAX_CHUNK_SIZE, max(MIN_CHUNK_SIZE, total_size / intended_num_chunks)) chunks = shared.chunkify(funcs, chunk_size, jcache.get_cachename('jsopt') if jcache else None) + if DEBUG and len(chunks) > 0: print >> sys.stderr, 'chunkification: intended size:', chunk_size, 'num funcs:', len(funcs), 'actual num chunks:', len(chunks), 'chunk size range:', max(map(len, chunks)), '-', min(map(len, chunks)) funcs = None if jcache: -- cgit v1.2.3-18-g5258