| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HEAP_GC_TRACER_H_ | 5 #ifndef V8_HEAP_GC_TRACER_H_ |
| 6 #define V8_HEAP_GC_TRACER_H_ | 6 #define V8_HEAP_GC_TRACER_H_ |
| 7 | 7 |
| 8 #include "src/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
| 9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
| 10 #include "src/base/ring-buffer.h" | 10 #include "src/base/ring-buffer.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 DISALLOW_COPY_AND_ASSIGN(Scope); | 145 DISALLOW_COPY_AND_ASSIGN(Scope); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 | 148 |
| 149 class Event { | 149 class Event { |
| 150 public: | 150 public: |
| 151 enum Type { | 151 enum Type { |
| 152 SCAVENGER = 0, | 152 SCAVENGER = 0, |
| 153 MARK_COMPACTOR = 1, | 153 MARK_COMPACTOR = 1, |
| 154 INCREMENTAL_MARK_COMPACTOR = 2, | 154 INCREMENTAL_MARK_COMPACTOR = 2, |
| 155 START = 3 | 155 MINOR_MARK_COMPACTOR = 3, |
| 156 START = 4 |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 Event(Type type, GarbageCollectionReason gc_reason, | 159 Event(Type type, GarbageCollectionReason gc_reason, |
| 159 const char* collector_reason); | 160 const char* collector_reason); |
| 160 | 161 |
| 161 // Returns a string describing the event type. | 162 // Returns a string describing the event type. |
| 162 const char* TypeName(bool short_name) const; | 163 const char* TypeName(bool short_name) const; |
| 163 | 164 |
| 164 // Type of event | 165 // Type of event |
| 165 Type type; | 166 Type type; |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; | 423 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; |
| 423 base::RingBuffer<double> recorded_context_disposal_times_; | 424 base::RingBuffer<double> recorded_context_disposal_times_; |
| 424 base::RingBuffer<double> recorded_survival_ratios_; | 425 base::RingBuffer<double> recorded_survival_ratios_; |
| 425 | 426 |
| 426 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 427 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 427 }; | 428 }; |
| 428 } // namespace internal | 429 } // namespace internal |
| 429 } // namespace v8 | 430 } // namespace v8 |
| 430 | 431 |
| 431 #endif // V8_HEAP_GC_TRACER_H_ | 432 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |