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/counters.h" | 10 #include "src/counters.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 inline BytesAndDuration MakeBytesAndDuration(uint64_t bytes, double duration) { | 57 inline BytesAndDuration MakeBytesAndDuration(uint64_t bytes, double duration) { |
58 return std::make_pair(bytes, duration); | 58 return std::make_pair(bytes, duration); |
59 } | 59 } |
60 | 60 |
61 enum ScavengeSpeedMode { kForAllObjects, kForSurvivedObjects }; | 61 enum ScavengeSpeedMode { kForAllObjects, kForSurvivedObjects }; |
62 | 62 |
63 #define INCREMENTAL_SCOPES(F) \ | 63 #define INCREMENTAL_SCOPES(F) \ |
64 /* MC_INCREMENTAL is the top-level incremental marking scope. */ \ | 64 /* MC_INCREMENTAL is the top-level incremental marking scope. */ \ |
65 F(MC_INCREMENTAL) \ | 65 F(MC_INCREMENTAL) \ |
| 66 F(MC_INCREMENTAL_SWEEPING) \ |
66 F(MC_INCREMENTAL_WRAPPER_PROLOGUE) \ | 67 F(MC_INCREMENTAL_WRAPPER_PROLOGUE) \ |
67 F(MC_INCREMENTAL_WRAPPER_TRACING) \ | 68 F(MC_INCREMENTAL_WRAPPER_TRACING) \ |
68 F(MC_INCREMENTAL_FINALIZE) \ | 69 F(MC_INCREMENTAL_FINALIZE) \ |
69 F(MC_INCREMENTAL_FINALIZE_BODY) \ | 70 F(MC_INCREMENTAL_FINALIZE_BODY) \ |
70 F(MC_INCREMENTAL_FINALIZE_OBJECT_GROUPING) \ | 71 F(MC_INCREMENTAL_FINALIZE_OBJECT_GROUPING) \ |
71 F(MC_INCREMENTAL_EXTERNAL_EPILOGUE) \ | 72 F(MC_INCREMENTAL_EXTERNAL_EPILOGUE) \ |
72 F(MC_INCREMENTAL_EXTERNAL_PROLOGUE) | 73 F(MC_INCREMENTAL_EXTERNAL_PROLOGUE) |
73 | 74 |
74 #define TRACER_SCOPES(F) \ | 75 #define TRACER_SCOPES(F) \ |
75 INCREMENTAL_SCOPES(F) \ | 76 INCREMENTAL_SCOPES(F) \ |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; | 505 RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; |
505 RingBuffer<double> recorded_context_disposal_times_; | 506 RingBuffer<double> recorded_context_disposal_times_; |
506 RingBuffer<double> recorded_survival_ratios_; | 507 RingBuffer<double> recorded_survival_ratios_; |
507 | 508 |
508 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 509 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
509 }; | 510 }; |
510 } // namespace internal | 511 } // namespace internal |
511 } // namespace v8 | 512 } // namespace v8 |
512 | 513 |
513 #endif // V8_HEAP_GC_TRACER_H_ | 514 #endif // V8_HEAP_GC_TRACER_H_ |
OLD | NEW |