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

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

Issue 2667743004: Surfaced native heap memory allocation information to the Observatory (Closed)
Patch Set: Added method to check if MallocHooks have been initialized. 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
« no previous file with comments | « runtime/observatory/lib/src/models/objects/vm.dart ('k') | runtime/vm/malloc_hooks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'];
« no previous file with comments | « runtime/observatory/lib/src/models/objects/vm.dart ('k') | runtime/vm/malloc_hooks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698