Index: src/wasm/module-decoder.cc |
diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc |
index d6f40ccd9e28a719a2ceabb5203a4286a24a1aa2..a26f0047b43e2c2860811b0967b24134d172d142 100644 |
--- a/src/wasm/module-decoder.cc |
+++ b/src/wasm/module-decoder.cc |
@@ -1155,7 +1155,8 @@ ModuleResult DecodeWasmModule(Isolate* isolate, const byte* module_start, |
const byte* module_end, bool verify_functions, |
ModuleOrigin origin) { |
HistogramTimerScope wasm_decode_module_time_scope( |
- isolate->counters()->wasm_decode_module_time()); |
+ IsWasm(origin) ? isolate->counters()->wasm_decode_wasm_module_time() |
+ : isolate->counters()->wasm_decode_asm_module_time()); |
size_t size = module_end - module_start; |
if (module_start > module_end) return ModuleError("start > end"); |
if (size >= kV8MaxWasmModuleSize) |