diff options
author | Allan Sandfeld Jensen <[email protected]> | 2015-09-28 18:37:14 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <[email protected]> | 2015-09-29 07:47:06 +0000 |
commit | 0e8ff63a407fe323e215bb1a2c423c09a4747c8a (patch) | |
tree | e27e357e125d2d705bd504e1e3c8a3da1ed20f1d /chromium/v8/src/heap/gc-tracer.h | |
parent | c3d0bb5bb15d008606b18b865841e19cd9bb5847 (diff) |
BASELINE: Update chromium to 45.0.2454.101upstream-45
Also adds web_cache component
Change-Id: I51238ceea8ee99854cc4989ae70a4fc2fc6bedcb
Reviewed-by: Kai Koehne <[email protected]>
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. |