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

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

Issue 2609253002: Added isolate + thread high watermark tracking to Observatory (Closed)
Patch Set: Merge branch 'master' of github.com:dart-lang/sdk into resubmit 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/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 76c1941832c61a6db4c8ca2f1c3a3e7f7f3b5cc8..b905523b82c6be0efa33ce2c916ab7f48ff7ab3f 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -1507,6 +1507,9 @@ class Isolate extends ServiceObjectOwner implements M.Isolate {
List<Thread> get threads => _threads;
final List<Thread> _threads = new List<Thread>();
+ int get memoryHighWatermark => _memoryHighWatermark;
+ int _memoryHighWatermark;
+
int get numZoneHandles => _numZoneHandles;
int _numZoneHandles;
@@ -1638,6 +1641,11 @@ class Isolate extends ServiceObjectOwner implements M.Isolate {
}
threads.clear();
+ if(map['_threads'] != null) {
+ threads.addAll(map['_threads']);
+ }
+
+ _memoryHighWatermark = int.parse(map['_memoryHighWatermark']);
if (map['threads'] != null) {
threads.addAll(map['threads']);
}
@@ -3081,6 +3089,8 @@ class Thread extends ServiceObject implements M.Thread {
M.ThreadKind _kind;
String get kindString => _kindString;
String _kindString;
+ int get memoryHighWatermark => _memoryHighWatermark;
+ int _memoryHighWatermark;
List<Zone> get zones => _zones;
final List<Zone> _zones = new List<Zone>();
@@ -3118,6 +3128,9 @@ class Thread extends ServiceObject implements M.Thread {
default:
assert(false);
}
+
+ _memoryHighWatermark = int.parse(map['_memoryHighWatermark']);
+
zones.clear();
zoneList.forEach((zone) {
int capacity = zone['capacity'];

Powered by Google App Engine
This is Rietveld 408576698