Chromium Code Reviews| 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_; |