| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 F(MC_MARK_WEAK_CLOSURE_HARMONY) \ | 72 F(MC_MARK_WEAK_CLOSURE_HARMONY) \ |
| 73 F(MC_MARK_WRAPPER_EPILOGUE) \ | 73 F(MC_MARK_WRAPPER_EPILOGUE) \ |
| 74 F(MC_MARK_WRAPPER_PROLOGUE) \ | 74 F(MC_MARK_WRAPPER_PROLOGUE) \ |
| 75 F(MC_MARK_WRAPPER_TRACING) \ | 75 F(MC_MARK_WRAPPER_TRACING) \ |
| 76 F(MC_MARK_OBJECT_GROUPING) \ | 76 F(MC_MARK_OBJECT_GROUPING) \ |
| 77 F(MC_PROLOGUE) \ | 77 F(MC_PROLOGUE) \ |
| 78 F(MC_SWEEP) \ | 78 F(MC_SWEEP) \ |
| 79 F(MC_SWEEP_CODE) \ | 79 F(MC_SWEEP_CODE) \ |
| 80 F(MC_SWEEP_MAP) \ | 80 F(MC_SWEEP_MAP) \ |
| 81 F(MC_SWEEP_OLD) \ | 81 F(MC_SWEEP_OLD) \ |
| 82 F(MINOR_MC_MARK) \ |
| 83 F(MINOR_MC_MARK_CODE_FLUSH_CANDIDATES) \ |
| 84 F(MINOR_MC_MARK_GLOBAL_HANDLES) \ |
| 85 F(MINOR_MC_MARK_OLD_TO_NEW_POINTERS) \ |
| 86 F(MINOR_MC_MARK_ROOTS) \ |
| 87 F(MINOR_MC_MARK_WEAK) \ |
| 82 F(SCAVENGER_CODE_FLUSH_CANDIDATES) \ | 88 F(SCAVENGER_CODE_FLUSH_CANDIDATES) \ |
| 83 F(SCAVENGER_OLD_TO_NEW_POINTERS) \ | 89 F(SCAVENGER_OLD_TO_NEW_POINTERS) \ |
| 84 F(SCAVENGER_ROOTS) \ | 90 F(SCAVENGER_ROOTS) \ |
| 85 F(SCAVENGER_SCAVENGE) \ | 91 F(SCAVENGER_SCAVENGE) \ |
| 86 F(SCAVENGER_SEMISPACE) \ | 92 F(SCAVENGER_SEMISPACE) \ |
| 87 F(SCAVENGER_WEAK) | 93 F(SCAVENGER_WEAK) |
| 88 | 94 |
| 89 #define TRACE_GC(tracer, scope_id) \ | 95 #define TRACE_GC(tracer, scope_id) \ |
| 90 GCTracer::Scope::ScopeId gc_tracer_scope_id(scope_id); \ | 96 GCTracer::Scope::ScopeId gc_tracer_scope_id(scope_id); \ |
| 91 GCTracer::Scope gc_tracer_scope(tracer, gc_tracer_scope_id); \ | 97 GCTracer::Scope gc_tracer_scope(tracer, gc_tracer_scope_id); \ |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; | 429 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; |
| 424 base::RingBuffer<double> recorded_context_disposal_times_; | 430 base::RingBuffer<double> recorded_context_disposal_times_; |
| 425 base::RingBuffer<double> recorded_survival_ratios_; | 431 base::RingBuffer<double> recorded_survival_ratios_; |
| 426 | 432 |
| 427 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 433 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 428 }; | 434 }; |
| 429 } // namespace internal | 435 } // namespace internal |
| 430 } // namespace v8 | 436 } // namespace v8 |
| 431 | 437 |
| 432 #endif // V8_HEAP_GC_TRACER_H_ | 438 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |