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

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

Issue 2781453004: Separate module min memory pages counter for asm.js/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 6436d1a52c76d67e72bd04f10ee30d2daae5a7bd..eaf0381dedbeb3a32df53b024ea82e3fbd66e43c 100644
--- a/src/wasm/wasm-module.cc
+++ b/src/wasm/wasm-module.cc
@@ -1315,7 +1315,9 @@ class InstantiationHelper {
MaybeHandle<JSArrayBuffer> old_memory;
uint32_t min_mem_pages = module_->min_mem_pages;
- isolate_->counters()->wasm_min_mem_pages_count()->AddSample(min_mem_pages);
+ (module_->is_wasm() ? isolate_->counters()->wasm_wasm_min_mem_pages_count()
+ : isolate_->counters()->wasm_asm_min_mem_pages_count())
+ ->AddSample(min_mem_pages);
if (!memory_.is_null()) {
// Set externally passed ArrayBuffer non neuterable.
« 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