aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-06 11:39:43 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-03-06 11:42:43 -0800
commit1ac8ea0859d91d86c23b5574bd0474887df1b96e (patch)
tree626a307dffa8ce3bc3dcd5986a8f2afe220ce27b
parent7dfba426c26ae22f9f077108b39a3201a1bb48fc (diff)
show logging about preload/pre-main time even without a main
-rw-r--r--src/postamble.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 603b330c..b90049bc 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -48,10 +48,6 @@ Module['callMain'] = Module.callMain = function callMain(args) {
args = args || [];
- if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
- Module.printErr('preload time: ' + (Date.now() - preloadStartTime) + ' ms');
- }
-
ensureInitRuntime();
var argc = args.length+1;
@@ -130,6 +126,10 @@ function run(args) {
preMain();
+ if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
+ Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
+ }
+
if (Module['_main'] && shouldRunNow) {
Module['callMain'](args);
}