diff options
Diffstat (limited to 'chromium/v8/src/heap/gc-tracer.h')
-rw-r--r-- | chromium/v8/src/heap/gc-tracer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/v8/src/heap/gc-tracer.h b/chromium/v8/src/heap/gc-tracer.h index 468fc9c0be7..e26fc898f99 100644 --- a/chromium/v8/src/heap/gc-tracer.h +++ b/chromium/v8/src/heap/gc-tracer.h @@ -291,6 +291,8 @@ class GCTracer { typedef RingBuffer<SurvivalEvent, kRingBufferMaxSize> SurvivalEventBuffer; + static const int kThroughputTimeFrameMs = 5000; + explicit GCTracer(Heap* heap); // Start collecting data. @@ -408,6 +410,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. |