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

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

Issue 2778493002: Separate module compile counter 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 8fd2b64845376490881ec6aa79ad2483f40d2109..a03e21fc504d96d7bfed9818f20971f0188a37f5 100644
--- a/src/wasm/wasm-module.cc
+++ b/src/wasm/wasm-module.cc
@@ -514,7 +514,9 @@ class CompilationHelper {
}
HistogramTimerScope wasm_compile_module_time_scope(
- isolate_->counters()->wasm_compile_module_time());
+ module_->origin == ModuleOrigin::kWasmOrigin
bbudge 2017/03/24 19:19:01 Since we'll be doing this check all over the place
Karl 2017/03/24 21:19:58 Part of the problem is that the origin field is NO
+ ? isolate_->counters()->wasm_compile_wasm_module_time()
+ : isolate_->counters()->wasm_compile_asm_module_time());
ModuleBytesEnv module_env(module_, &temp_instance, wire_bytes);
« 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