diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-26 15:23:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-26 15:23:49 -0800 |
commit | 202a13e9bb409cf320dd19f3aff48b77ba934fb2 (patch) | |
tree | fd23298c94610ccf18de4f993c8b2254cd9f8bed | |
parent | 6cd47398bb73572c95dab7729ccb8ac793f69655 (diff) |
add debug printout regarding chunkification in js optimizer
-rw-r--r-- | tools/js_optimizer.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |