We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbfcb2e commit b742079Copy full SHA for b742079
1 file changed
emcc
@@ -713,6 +713,8 @@ try:
713
minify_whitespace = closure # if closure is run, minify whitespace
714
if opt_level <= 0: keep_debug = True # always keep debug in -O0
715
716
+ if DEBUG: start_time = time.time() # done after parsing arguments, which might affect debug state
717
+
718
if closure:
719
assert os.path.exists(shared.CLOSURE_COMPILER), 'emcc: fatal: Closure compiler (%s) does not exist' % shared.CLOSURE_COMPILER
720
@@ -1240,6 +1242,8 @@ try:
1240
1242
# copy final JS to output
1241
1243
shutil.move(final, target)
1244
1245
+ if DEBUG: print >> sys.stderr, 'emcc: total time: %.2f seconds' % (time.time() - start_time)
1246
1247
finally:
1248
if not TEMP_DIR:
1249
try:
0 commit comments