| Index: src/heap/gc-tracer.h
|
| diff --git a/src/heap/gc-tracer.h b/src/heap/gc-tracer.h
|
| index 66c701c720c5cf7bc432779813a464327f06a579..04dac62f0261fe6447eb5a7e6e71bbb5f57e8d4b 100644
|
| --- a/src/heap/gc-tracer.h
|
| +++ b/src/heap/gc-tracer.h
|
| @@ -160,12 +160,7 @@ class GCTracer {
|
|
|
| class Event {
|
| public:
|
| - enum Type {
|
| - SCAVENGER = 0,
|
| - MARK_COMPACTOR = 1,
|
| - INCREMENTAL_MARK_COMPACTOR = 2,
|
| - START = 3
|
| - };
|
| + enum Type { SCAVENGER = 0, MARK_COMPACTOR = 1, START = 2 };
|
|
|
| // Default constructor leaves the event uninitialized.
|
| Event() {}
|
| @@ -216,8 +211,7 @@ class GCTracer {
|
|
|
| // Incremental marking steps since
|
| // - last event for SCAVENGER events
|
| - // - last INCREMENTAL_MARK_COMPACTOR event for INCREMENTAL_MARK_COMPACTOR
|
| - // events
|
| + // - last MARK_COMPACTOR event for MARK_COMPACTOR events
|
| int incremental_marking_steps;
|
|
|
| // Bytes marked since creation of tracer (value at start of event).
|
| @@ -225,8 +219,7 @@ class GCTracer {
|
|
|
| // Bytes marked since
|
| // - last event for SCAVENGER events
|
| - // - last INCREMENTAL_MARK_COMPACTOR event for INCREMENTAL_MARK_COMPACTOR
|
| - // events
|
| + // - last MARK_COMPACTOR event for MARK_COMPACTOR events
|
| intptr_t incremental_marking_bytes;
|
|
|
| // Cumulative duration of incremental marking steps since creation of
|
| @@ -235,8 +228,7 @@ class GCTracer {
|
|
|
| // Duration of incremental marking steps since
|
| // - last event for SCAVENGER events
|
| - // - last INCREMENTAL_MARK_COMPACTOR event for INCREMENTAL_MARK_COMPACTOR
|
| - // events
|
| + // - last MARK_COMPACTOR event for MARK_COMPACTOR events
|
| double incremental_marking_duration;
|
|
|
| // Cumulative pure duration of incremental marking steps since creation of
|
| @@ -245,8 +237,7 @@ class GCTracer {
|
|
|
| // Duration of pure incremental marking steps since
|
| // - last event for SCAVENGER events
|
| - // - last INCREMENTAL_MARK_COMPACTOR event for INCREMENTAL_MARK_COMPACTOR
|
| - // events
|
| + // - last MARK_COMPACTOR event for MARK_COMPACTOR events
|
| double pure_incremental_marking_duration;
|
|
|
| // Longest incremental marking step since start of marking.
|
| @@ -325,12 +316,6 @@ class GCTracer {
|
| return MaxDuration(mark_compactor_events_);
|
| }
|
|
|
| - // Compute the mean duration of the last incremental mark compactor
|
| - // events. Returns 0 if no events have been recorded.
|
| - double MeanIncrementalMarkCompactorDuration() const {
|
| - return MeanDuration(incremental_mark_compactor_events_);
|
| - }
|
| -
|
| // Compute the mean step duration of the last incremental marking round.
|
| // Returns 0 if no incremental marking round has been completed.
|
| double MeanIncrementalMarkingDuration() const;
|
| @@ -347,15 +332,10 @@ class GCTracer {
|
| // Returns 0 if no events have been recorded.
|
| intptr_t ScavengeSpeedInBytesPerMillisecond() const;
|
|
|
| - // Compute the average mark-sweep speed in bytes/millisecond.
|
| + // Compute the max mark-sweep speed in bytes/millisecond.
|
| // Returns 0 if no events have been recorded.
|
| intptr_t MarkCompactSpeedInBytesPerMillisecond() const;
|
|
|
| - // Compute the average incremental mark-sweep finalize speed in
|
| - // bytes/millisecond.
|
| - // Returns 0 if no events have been recorded.
|
| - intptr_t FinalIncrementalMarkCompactSpeedInBytesPerMillisecond() const;
|
| -
|
| // Allocation throughput in the new space in bytes/millisecond.
|
| // Returns 0 if no events have been recorded.
|
| intptr_t NewSpaceAllocationThroughputInBytesPerMillisecond() const;
|
| @@ -381,16 +361,6 @@ class GCTracer {
|
| // Compute the max duration of the events in the given ring buffer.
|
| double MaxDuration(const EventBuffer& events) const;
|
|
|
| - void ClearMarkCompactStatistics() {
|
| - cumulative_incremental_marking_steps_ = 0;
|
| - cumulative_incremental_marking_bytes_ = 0;
|
| - cumulative_incremental_marking_duration_ = 0;
|
| - cumulative_pure_incremental_marking_duration_ = 0;
|
| - longest_incremental_marking_step_ = 0;
|
| - cumulative_marking_duration_ = 0;
|
| - cumulative_sweeping_duration_ = 0;
|
| - }
|
| -
|
| // Pointer to the heap that owns this tracer.
|
| Heap* heap_;
|
|
|
| @@ -401,8 +371,8 @@ class GCTracer {
|
| // Previous tracer event.
|
| Event previous_;
|
|
|
| - // Previous INCREMENTAL_MARK_COMPACTOR event.
|
| - Event previous_incremental_mark_compactor_event_;
|
| + // Previous MARK_COMPACTOR event.
|
| + Event previous_mark_compactor_event_;
|
|
|
| // RingBuffers for SCAVENGER events.
|
| EventBuffer scavenger_events_;
|
| @@ -410,9 +380,6 @@ class GCTracer {
|
| // RingBuffers for MARK_COMPACTOR events.
|
| EventBuffer mark_compactor_events_;
|
|
|
| - // RingBuffers for INCREMENTAL_MARK_COMPACTOR events.
|
| - EventBuffer incremental_mark_compactor_events_;
|
| -
|
| // RingBuffer for allocation events.
|
| AllocationEventBuffer allocation_events_;
|
|
|
|
|