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 66133ad090823de6df16304ed079192311615515..962068408cf4909fd659d69a95d0e7c063c0c66d 100644 |
--- a/runtime/observatory/lib/src/service/object.dart |
+++ b/runtime/observatory/lib/src/service/object.dart |
@@ -661,6 +661,8 @@ abstract class VM extends ServiceObjectOwner implements M.VM { |
bool typeChecksEnabled = false; |
int nativeZoneMemoryUsage = 0; |
int pid = 0; |
+ int heapAllocatedMemoryUsage = 0; |
+ int heapAllocationCount = 0; |
int maxRSS = 0; |
bool profileVM = false; |
DateTime startTime; |
@@ -951,6 +953,12 @@ abstract class VM extends ServiceObjectOwner implements M.VM { |
nativeZoneMemoryUsage = map['_nativeZoneMemoryUsage']; |
} |
pid = map['pid']; |
+ if (map['_heapAllocatedMemoryUsage'] != null) { |
+ heapAllocatedMemoryUsage = map['_heapAllocatedMemoryUsage']; |
+ } |
+ if (map['_heapAllocationCount'] != null) { |
+ heapAllocationCount = map['_heapAllocationCount']; |
+ } |
maxRSS = map['_maxRSS']; |
profileVM = map['_profilerMode'] == 'VM'; |
assertsEnabled = map['_assertsEnabled']; |