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

Unified Diff: runtime/vm/service.cc

Issue 2678313003: Fix for issue 28638 - flakiness on dartkp-dart-precompiled caused by MallocHooks (Closed)
Patch Set: Address self review comments. Created 3 years, 10 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/vm/malloc_hooks_unsupported.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index 66c7abec3ac3f98a02ec7d45f701cbc9db47a488..3353228e860062b857f37fb48ecf4f20621393a8 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -3802,11 +3802,7 @@ void Service::PrintJSONForVM(JSONStream* js, bool ref) {
jsobj.AddProperty64("_maxRSS", OS::MaxRSS());
jsobj.AddPropertyTimeMillis(
"startTime", OS::GetCurrentTimeMillis() - Dart::UptimeMillis());
- if (MallocHooks::Initialized()) {
- jsobj.AddProperty("_heapAllocatedMemoryUsage",
- MallocHooks::heap_allocated_memory_in_bytes());
- jsobj.AddProperty("_heapAllocationCount", MallocHooks::allocation_count());
- }
+ MallocHooks::PrintToJSONObject(&jsobj);
// Construct the isolate list.
{
JSONArray jsarr(&jsobj, "isolates");
« no previous file with comments | « runtime/vm/malloc_hooks_unsupported.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698