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

Unified Diff: runtime/vm/isolate.cc

Issue 2601153002: Added methods to surface number of zone and scoped handles for each isolate. (Closed)
Patch Set: Created 4 years 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/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 8304532470999c81ea515843ad6496c8348db0f3..6812ee9c92fb9147aa4be1293bf4f1a18cd7e50a 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -2044,6 +2044,12 @@ void Isolate::PrintJSON(JSONStream* stream, bool ref) {
jsobj.AddProperty("rootLib", lib);
}
+ intptr_t zone_handle_count = thread_registry_->CountZoneHandles();
+ intptr_t scoped_handle_count = thread_registry_->CountScopedHandles();
+
+ jsobj.AddProperty("numZoneHandles", zone_handle_count);
Cutch 2017/01/03 18:16:49 _numZoneHandles and _numScopedHandles.
bkonyi 2017/01/03 20:00:10 Done.
+ jsobj.AddProperty("numScopedHandles", scoped_handle_count);
+
if (FLAG_profiler) {
JSONObject tagCounters(&jsobj, "_tagCounters");
vm_tag_counters()->PrintToJSONObject(&tagCounters);

Powered by Google App Engine
This is Rietveld 408576698