| Index: src/heap/gc-tracer.h
|
| diff --git a/src/heap/gc-tracer.h b/src/heap/gc-tracer.h
|
| index 811266e92e29c4fbf45fc980db58fe72eaec1ac4..9f383bf890f5ca30eb8568521260461806cc80dd 100644
|
| --- a/src/heap/gc-tracer.h
|
| +++ b/src/heap/gc-tracer.h
|
| @@ -299,6 +299,8 @@ class GCTracer {
|
|
|
| typedef RingBuffer<SurvivalEvent, kRingBufferMaxSize> SurvivalEventBuffer;
|
|
|
| + static const int kThroughputTimeFrameMs = 5000;
|
| +
|
| explicit GCTracer(Heap* heap);
|
|
|
| // Start collecting data.
|
| @@ -416,6 +418,11 @@ class GCTracer {
|
| // Returns 0 if no allocation events have been recorded.
|
| size_t AllocationThroughputInBytesPerMillisecond(double time_ms) const;
|
|
|
| + // Allocation throughput in heap in bytes/milliseconds in
|
| + // the last five seconds.
|
| + // Returns 0 if no allocation events have been recorded.
|
| + size_t CurrentAllocationThroughputInBytesPerMillisecond() const;
|
| +
|
| // Allocation throughput in old generation in bytes/milliseconds in
|
| // the last five seconds.
|
| // Returns 0 if no allocation events have been recorded.
|
|
|