| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 93d5a084b9a9ce7954d4101760c14426a12b892b..4eeaf5ecc850919aa60fcc5ae0a7ea319c3a811b 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -2675,6 +2675,8 @@ Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, wasm::ModuleEnv* module,
|
| Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate,
|
| wasm::ModuleEnv* module_env,
|
| const wasm::WasmFunction& function) {
|
| + HistogramTimerScope wasm_compile_function_time_scope(
|
| + isolate->counters()->wasm_compile_function_time());
|
| if (FLAG_trace_wasm_compiler) {
|
| OFStream os(stdout);
|
| os << "Compiling WASM function "
|
| @@ -2778,6 +2780,8 @@ Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate,
|
| static_cast<int>(function.code_end_offset - function.code_start_offset),
|
| decode_ms, static_cast<int>(graph.NodeCount()), compile_ms);
|
| }
|
| + isolate->counters()->wasm_compile_function_peak_memory()->AddSample(
|
| + static_cast<int>(zone.allocation_size()));
|
| return code;
|
| }
|
|
|
|
|