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

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

Issue 1866873002: [wasm] Adding metrics for Asm/Wasm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 8 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
Index: src/wasm/wasm-js.cc
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc
index 83009d7c81def5acbd56bc711fc5f2c5528db216..eb21796fca46cb079bab351a3d45ba47713d4365 100644
--- a/src/wasm/wasm-js.cc
+++ b/src/wasm/wasm-js.cc
@@ -195,6 +195,8 @@ void InstantiateModuleCommon(const v8::FunctionCallbackInfo<v8::Value>& args,
}
if (result.val) delete result.val;
+ isolate->counters()->wasm_instantiate_peak_memory()->AddSample(
+ static_cast<int>(zone.allocation_size()));
ahaas 2016/04/11 08:03:08 What exactly do you want to measure with this coun
bradn 2016/04/13 00:22:45 Erg, yeah this one doesn't make much sense. Ideall
}
« no previous file with comments | « src/wasm/module-decoder.cc ('k') | src/wasm/wasm-module.cc » ('j') | src/wasm/wasm-module.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698