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/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 double pure_incremental_marking_duration; | 241 double pure_incremental_marking_duration; |
242 | 242 |
243 // Longest incremental marking step since start of marking. | 243 // Longest incremental marking step since start of marking. |
244 // (value at start of event) | 244 // (value at start of event) |
245 double longest_incremental_marking_step; | 245 double longest_incremental_marking_step; |
246 | 246 |
247 // Amounts of time spent in different scopes during GC. | 247 // Amounts of time spent in different scopes during GC. |
248 double scopes[Scope::NUMBER_OF_SCOPES]; | 248 double scopes[Scope::NUMBER_OF_SCOPES]; |
249 }; | 249 }; |
250 | 250 |
251 static const int kRingBufferMaxSize = 10; | 251 static const size_t kRingBufferMaxSize = 10; |
252 | 252 |
253 typedef RingBuffer<Event, kRingBufferMaxSize> EventBuffer; | 253 typedef RingBuffer<Event, kRingBufferMaxSize> EventBuffer; |
254 | 254 |
255 typedef RingBuffer<AllocationEvent, kRingBufferMaxSize> AllocationEventBuffer; | 255 typedef RingBuffer<AllocationEvent, kRingBufferMaxSize> AllocationEventBuffer; |
256 | 256 |
257 typedef RingBuffer<ContextDisposalEvent, kRingBufferMaxSize> | 257 typedef RingBuffer<ContextDisposalEvent, kRingBufferMaxSize> |
258 ContextDisposalEventBuffer; | 258 ContextDisposalEventBuffer; |
259 | 259 |
260 explicit GCTracer(Heap* heap); | 260 explicit GCTracer(Heap* heap); |
261 | 261 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 // Holds the new space top pointer recorded at the end of the last garbage | 418 // Holds the new space top pointer recorded at the end of the last garbage |
419 // collection. | 419 // collection. |
420 intptr_t new_space_top_after_gc_; | 420 intptr_t new_space_top_after_gc_; |
421 | 421 |
422 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 422 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
423 }; | 423 }; |
424 } | 424 } |
425 } // namespace v8::internal | 425 } // namespace v8::internal |
426 | 426 |
427 #endif // V8_HEAP_GC_TRACER_H_ | 427 #endif // V8_HEAP_GC_TRACER_H_ |
OLD | NEW |