Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index fbe9a91c1a130ead3b125dd1b5f1e5b21fe31510..eb29c607983f570f40caab69b9a9a7083ee84f7a 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1153,8 +1153,11 @@ class InstantiationHelper { |
return {}; |
} |
+ // Record build time into correct bucket, then build instance. |
HistogramTimerScope wasm_instantiate_module_time_scope( |
- isolate_->counters()->wasm_instantiate_module_time()); |
+ module_->origin == ModuleOrigin::kWasmOrigin |
bradnelson
2017/03/24 17:25:10
Ah, good idea.
|
+ ? isolate_->counters()->wasm_instantiate_wasm_module_time() |
+ : isolate_->counters()->wasm_instantiate_asm_module_time()); |
Factory* factory = isolate_->factory(); |
//-------------------------------------------------------------------------- |