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

Unified Diff: runtime/vm/isolate.cc

Issue 70993002: - Convert heap sizes to words from bytes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/heap.cc ('k') | runtime/vm/pages.h » ('j') | runtime/vm/pages.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 30304)
+++ runtime/vm/isolate.cc (working copy)
@@ -934,11 +934,11 @@
char buffer[300];
int64_t address = reinterpret_cast<int64_t>(this);
int n = OS::SNPrint(buffer, 300, format, address, name(), main_port(),
- (start_time() / 1000L), saved_stack_limit(),
- heap()->Used(Heap::kNew) / KB,
- heap()->Capacity(Heap::kNew) / KB,
- heap()->Used(Heap::kOld) / KB,
- heap()->Capacity(Heap::kOld) / KB);
+ start_time() / 1000L, saved_stack_limit(),
+ RoundWordsToKB(heap()->UsedInWords(Heap::kNew)),
+ RoundWordsToKB(heap()->CapacityInWords(Heap::kNew)),
+ RoundWordsToKB(heap()->UsedInWords(Heap::kOld)),
+ RoundWordsToKB(heap()->CapacityInWords(Heap::kOld)));
ASSERT(n < 300);
return strdup(buffer);
}
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/pages.h » ('j') | runtime/vm/pages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698