Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: src/wasm/wasm-module.cc

Issue 2777073003: Split counters for functions per module for asm and wasm. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/counters.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =
« no previous file with comments | « src/counters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698