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

Unified Diff: runtime/vm/isolate.cc

Issue 342513004: Visual refresh of allocation profile page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/isolate.h ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 01fc835fd3e2fd43ce7246d4b16355aac89bb23d..e0d6df25fdc996c94520d311f643fa39fd461c6b 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -351,6 +351,8 @@ Isolate::Isolate()
deopt_context_(NULL),
stacktrace_(NULL),
stack_frame_index_(-1),
+ last_allocationprofile_accumulator_reset_timestamp_(0),
+ last_allocationprofile_gc_timestamp_(0),
cha_used_(false),
object_id_ring_(NULL),
trace_buffer_(NULL),
@@ -936,15 +938,9 @@ void Isolate::PrintJSON(JSONStream* stream, bool ref) {
}
}
{
- JSONObject jsheap(&jsobj, "heap");
- jsheap.AddProperty("usedNew",
- heap()->UsedInWords(Heap::kNew) * kWordSize);
- jsheap.AddProperty("capacityNew",
- heap()->CapacityInWords(Heap::kNew) * kWordSize);
- jsheap.AddProperty("usedOld",
- heap()->UsedInWords(Heap::kOld) * kWordSize);
- jsheap.AddProperty("capacityOld",
- heap()->CapacityInWords(Heap::kOld) * kWordSize);
+ JSONObject jsheap(&jsobj, "heaps");
+ heap()->PrintToJSONObject(Heap::kNew, &jsheap);
+ heap()->PrintToJSONObject(Heap::kOld, &jsheap);
}
// TODO(turnidge): Don't compute a full stack trace every time we
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698