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

Unified Diff: runtime/vm/isolate.cc

Issue 233523002: Fix heap report bug and add checked mode display to VM page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/bin/vmservice/client/lib/src/service/object.dart ('k') | runtime/vm/service.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 aa8f2a7aea9e05e1bb5b488caa1f01183744e13d..4ac46b7835e25c52059ce2d43e24390879745081 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -902,10 +902,14 @@ void Isolate::PrintToJSONStream(JSONStream* stream, bool ref) {
}
{
JSONObject jsheap(&jsobj, "heap");
- jsheap.AddProperty("usedNew", heap()->UsedInWords(Heap::kNew));
- jsheap.AddProperty("capacityNew", heap()->CapacityInWords(Heap::kNew));
- jsheap.AddProperty("usedOld", heap()->UsedInWords(Heap::kOld));
- jsheap.AddProperty("capacityOld", heap()->CapacityInWords(Heap::kOld));
+ 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);
}
// TODO(turnidge): Don't compute a full stack trace every time we
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/object.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698