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

Unified Diff: runtime/vm/heap.h

Issue 11973035: Added heap capacity and used space status methods, for use by status tools. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | runtime/vm/heap.cc » ('j') | runtime/vm/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
===================================================================
--- runtime/vm/heap.h (revision 17153)
+++ runtime/vm/heap.h (working copy)
@@ -155,6 +155,10 @@
// Print heap sizes.
void PrintSizes() const;
+ // Return amount of memory used and capacity in a space.
+ intptr_t Used(Space space) const;
+ intptr_t Capacity(Space space) const;
+
// Returns the [lowest, highest) addresses in the heap.
void StartEndAddress(uword* start, uword* end) const;
« no previous file with comments | « no previous file | runtime/vm/heap.cc » ('j') | runtime/vm/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698