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

Unified Diff: runtime/vm/dart_api_state.cc

Issue 2650583014: Added tracking of memory usage within ApiNativeScopes. Usage to be displayed within Observatory. (Closed)
Patch Set: Added unit test + fixed typo Created 3 years, 11 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: runtime/vm/dart_api_state.cc
diff --git a/runtime/vm/dart_api_state.cc b/runtime/vm/dart_api_state.cc
index 2d1d82717e8211002072259b3b244299eb04aad6..d5d0d3b7b0808e792a50923a7b44e9a125051102 100644
--- a/runtime/vm/dart_api_state.cc
+++ b/runtime/vm/dart_api_state.cc
@@ -14,6 +14,8 @@
namespace dart {
+intptr_t ApiNativeScope::current_memory_usage_ = 0;
+
BackgroundFinalizer::BackgroundFinalizer(Isolate* isolate,
FinalizationQueue* queue)
: isolate_(isolate), queue_(queue) {
« no previous file with comments | « runtime/vm/dart_api_state.h ('k') | runtime/vm/zone.cc » ('j') | runtime/vm/zone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698