| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index d1f07608259fa5d5423d439a9888fb77a4fcb00c..21b01e5552e49294cad5231bc0fe37f811ed9a02 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -542,8 +542,10 @@ class CompilationHelper {
|
| temp_instance.function_code[i] = init_builtin;
|
| }
|
|
|
| - isolate_->counters()->wasm_functions_per_module()->AddSample(
|
| - static_cast<int>(module_->functions.size()));
|
| + (module_->is_wasm() ? isolate_->counters()->wasm_functions_per_wasm_module()
|
| + : isolate_->counters()->wasm_functions_per_asm_module())
|
| + ->AddSample(static_cast<int>(module_->functions.size()));
|
| +
|
| if (!lazy_compile) {
|
| CompilationHelper helper(isolate_, module_);
|
| size_t funcs_to_compile =
|
|
|