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

Unified Diff: runtime/vm/heap.h

Issue 51653006: Track live instance and allocation counts for classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index 2c39e2bde63f09447ed846d62bd6f2715ca3a382..aa4649bb30da0a4d472e85f11f985610d59872e2 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -165,7 +165,10 @@ class Heap {
// Return amount of memory used and capacity in a space.
intptr_t UsedInWords(Space space) const;
intptr_t CapacityInWords(Space space) const;
-
+ // Return the amount of GCing in microseconds.
+ int64_t GCTimeInMicros(Space space) const;
+ double GCTimeInSeconds(Space space) const;
Ivan Posva 2014/01/17 06:53:16 Why do you need both? Micros and Seconds?
Cutch 2014/01/17 18:37:59 Removed Seconds.
+ intptr_t Collections(Space space) const;
// Returns the [lowest, highest) addresses in the heap.
void StartEndAddress(uword* start, uword* end) const;
@@ -278,6 +281,7 @@ class Heap {
void RecordAfterGC();
void PrintStats();
void UpdateObjectHistogram();
+ void UpdateClassHeapStatsBeforeGC(Heap::Space space);
// The different spaces used for allocation.
Scavenger* new_space_;

Powered by Google App Engine
This is Rietveld 408576698