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

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

Issue 2772773004: Separate module instantiate counter for asm and wasm. (Closed)
Patch Set: Simplify code back to previous form 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
« src/counters.h ('K') | « 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 fbe9a91c1a130ead3b125dd1b5f1e5b21fe31510..eb29c607983f570f40caab69b9a9a7083ee84f7a 100644
--- a/src/wasm/wasm-module.cc
+++ b/src/wasm/wasm-module.cc
@@ -1153,8 +1153,11 @@ class InstantiationHelper {
return {};
}
+ // Record build time into correct bucket, then build instance.
HistogramTimerScope wasm_instantiate_module_time_scope(
- isolate_->counters()->wasm_instantiate_module_time());
+ module_->origin == ModuleOrigin::kWasmOrigin
bradnelson 2017/03/24 17:25:10 Ah, good idea.
+ ? isolate_->counters()->wasm_instantiate_wasm_module_time()
+ : isolate_->counters()->wasm_instantiate_asm_module_time());
Factory* factory = isolate_->factory();
//--------------------------------------------------------------------------
« src/counters.h ('K') | « src/counters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698