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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 2601153002: Added methods to surface number of zone and scoped handles for each isolate. (Closed)
Patch Set: Added methods to surface number of zone and scoped handles in each isolate. These values are displa… Created 3 years, 12 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/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index b9e0f6efd02e0dc4999bc1b9116b021199abc696..b27a977c5a604c0d103c18439f1c9f5fd69b12fd 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -1507,6 +1507,12 @@ class Isolate extends ServiceObjectOwner implements M.Isolate {
List<Thread> get threads => _threads;
final List<Thread> _threads = new List<Thread>();
+ int get numZoneHandles => _numZoneHandles;
+ int _numZoneHandles;
+
+ int get numScopedHandles => _numScopedHandles;
+ int _numScopedHandles;
+
void _loadHeapSnapshot(ServiceEvent event) {
if (_snapshotFetch == null || _snapshotFetch.isClosed) {
// No outstanding snapshot request. Presumably another client asked for a
@@ -1632,9 +1638,12 @@ class Isolate extends ServiceObjectOwner implements M.Isolate {
}
threads.clear();
- if(map['threads'] != null) {
+ if (map['threads'] != null) {
threads.addAll(map['threads']);
}
+
+ _numZoneHandles = map['_numZoneHandles'];
+ _numScopedHandles = map['_numScopedHandles'];
}
Future<TagProfile> updateTagProfile() {
« no previous file with comments | « runtime/observatory/lib/src/models/objects/isolate.dart ('k') | runtime/observatory/tests/service/get_isolate_rpc_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698