[fuchsia_reload] More information from --list (#9503)
diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart
index 332f352..e8447c2 100644
--- a/packages/flutter_tools/lib/src/vmservice.dart
+++ b/packages/flutter_tools/lib/src/vmservice.dart
@@ -512,6 +512,10 @@
// TODO(johnmccutchan): Extract any properties we care about here.
_pid = map['pid'];
+ if (map['_heapAllocatedMemoryUsage'] != null) {
+ _heapAllocatedMemoryUsage = map['_heapAllocatedMemoryUsage'];
+ }
+ _maxRSS = map['_maxRSS'];
// Remove any isolates which are now dead from the isolate cache.
_removeDeadIsolates(map['isolates']);
@@ -528,9 +532,18 @@
/// The pid of the VM's process.
int _pid;
-
int get pid => _pid;
+ /// The number of bytes allocated (e.g. by malloc) in the native heap.
+ int _heapAllocatedMemoryUsage;
+ int get heapAllocatedMemoryUsage {
+ return _heapAllocatedMemoryUsage == null ? 0 : _heapAllocatedMemoryUsage;
+ }
+
+ /// The peak resident set size for the process.
+ int _maxRSS;
+ int get maxRSS => _maxRSS == null ? 0 : _maxRSS;
+
int _compareIsolates(Isolate a, Isolate b) {
final DateTime aStart = a.startTime;
final DateTime bStart = b.startTime;