Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 6436d1a52c76d67e72bd04f10ee30d2daae5a7bd..eaf0381dedbeb3a32df53b024ea82e3fbd66e43c 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1315,7 +1315,9 @@ class InstantiationHelper { |
MaybeHandle<JSArrayBuffer> old_memory; |
uint32_t min_mem_pages = module_->min_mem_pages; |
- isolate_->counters()->wasm_min_mem_pages_count()->AddSample(min_mem_pages); |
+ (module_->is_wasm() ? isolate_->counters()->wasm_wasm_min_mem_pages_count() |
+ : isolate_->counters()->wasm_asm_min_mem_pages_count()) |
+ ->AddSample(min_mem_pages); |
if (!memory_.is_null()) { |
// Set externally passed ArrayBuffer non neuterable. |