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

Unified Diff: runtime/vm/service.cc

Issue 51653006: Track live instance and allocation counts for classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index 35715e8613fc9391c8122a01920f1320ae0fe8ce..961e1af57000c688b4415ba9b50139665f2d1a32 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -1044,11 +1044,18 @@ static bool HandleProfile(Isolate* isolate, JSONStream* js) {
}
+static bool HandleAllocationProfile(Isolate* isolate, JSONStream* js) {
+ isolate->class_table()->AllocationProfilePrintToJSONStream(js);
+ return true;
+}
+
+
static IsolateMessageHandlerEntry isolate_handlers[] = {
{ "_echo", HandleIsolateEcho },
{ "classes", HandleClasses },
{ "code", HandleCode },
{ "debug", HandleDebug },
+ { "allocationprofile", HandleAllocationProfile },
Ivan Posva 2014/01/21 21:40:00 Sorted order?
Cutch 2014/01/21 23:44:06 Done.
{ "libraries", HandleLibraries },
{ "library", HandleLibrary },
{ "name", HandleName },

Powered by Google App Engine
This is Rietveld 408576698