Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: src/heap/gc-tracer.h

Issue 2796233003: [heap] Evacuation for young generation (Closed)
Patch Set: Disable flag Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16 matching lines...) Expand all
27 /* MC_INCREMENTAL is the top-level incremental marking scope. */ \ 27 /* MC_INCREMENTAL is the top-level incremental marking scope. */ \
28 F(MC_INCREMENTAL) \ 28 F(MC_INCREMENTAL) \
29 F(MC_INCREMENTAL_SWEEPING) \ 29 F(MC_INCREMENTAL_SWEEPING) \
30 F(MC_INCREMENTAL_WRAPPER_PROLOGUE) \ 30 F(MC_INCREMENTAL_WRAPPER_PROLOGUE) \
31 F(MC_INCREMENTAL_WRAPPER_TRACING) \ 31 F(MC_INCREMENTAL_WRAPPER_TRACING) \
32 F(MC_INCREMENTAL_FINALIZE) \ 32 F(MC_INCREMENTAL_FINALIZE) \
33 F(MC_INCREMENTAL_FINALIZE_BODY) \ 33 F(MC_INCREMENTAL_FINALIZE_BODY) \
34 F(MC_INCREMENTAL_EXTERNAL_EPILOGUE) \ 34 F(MC_INCREMENTAL_EXTERNAL_EPILOGUE) \
35 F(MC_INCREMENTAL_EXTERNAL_PROLOGUE) 35 F(MC_INCREMENTAL_EXTERNAL_PROLOGUE)
36 36
37 #define TRACER_SCOPES(F) \ 37 #define TRACER_SCOPES(F) \
38 INCREMENTAL_SCOPES(F) \ 38 INCREMENTAL_SCOPES(F) \
39 F(HEAP_EPILOGUE) \ 39 F(HEAP_EPILOGUE) \
40 F(HEAP_EPILOGUE_REDUCE_NEW_SPACE) \ 40 F(HEAP_EPILOGUE_REDUCE_NEW_SPACE) \
41 F(HEAP_EXTERNAL_EPILOGUE) \ 41 F(HEAP_EXTERNAL_EPILOGUE) \
42 F(HEAP_EXTERNAL_PROLOGUE) \ 42 F(HEAP_EXTERNAL_PROLOGUE) \
43 F(HEAP_EXTERNAL_WEAK_GLOBAL_HANDLES) \ 43 F(HEAP_EXTERNAL_WEAK_GLOBAL_HANDLES) \
44 F(HEAP_PROLOGUE) \ 44 F(HEAP_PROLOGUE) \
45 F(MC_CLEAR) \ 45 F(MC_CLEAR) \
46 F(MC_CLEAR_CODE_FLUSH) \ 46 F(MC_CLEAR_CODE_FLUSH) \
47 F(MC_CLEAR_DEPENDENT_CODE) \ 47 F(MC_CLEAR_DEPENDENT_CODE) \
48 F(MC_CLEAR_MAPS) \ 48 F(MC_CLEAR_MAPS) \
49 F(MC_CLEAR_SLOTS_BUFFER) \ 49 F(MC_CLEAR_SLOTS_BUFFER) \
50 F(MC_CLEAR_STORE_BUFFER) \ 50 F(MC_CLEAR_STORE_BUFFER) \
51 F(MC_CLEAR_STRING_TABLE) \ 51 F(MC_CLEAR_STRING_TABLE) \
52 F(MC_CLEAR_WEAK_CELLS) \ 52 F(MC_CLEAR_WEAK_CELLS) \
53 F(MC_CLEAR_WEAK_COLLECTIONS) \ 53 F(MC_CLEAR_WEAK_COLLECTIONS) \
54 F(MC_CLEAR_WEAK_LISTS) \ 54 F(MC_CLEAR_WEAK_LISTS) \
55 F(MC_EPILOGUE) \ 55 F(MC_EPILOGUE) \
56 F(MC_EVACUATE) \ 56 F(MC_EVACUATE) \
57 F(MC_EVACUATE_CANDIDATES) \ 57 F(MC_EVACUATE_CANDIDATES) \
58 F(MC_EVACUATE_CLEAN_UP) \ 58 F(MC_EVACUATE_CLEAN_UP) \
59 F(MC_EVACUATE_COPY) \ 59 F(MC_EVACUATE_COPY) \
60 F(MC_EVACUATE_EPILOGUE) \ 60 F(MC_EVACUATE_EPILOGUE) \
61 F(MC_EVACUATE_PROLOGUE) \ 61 F(MC_EVACUATE_PROLOGUE) \
62 F(MC_EVACUATE_REBALANCE) \ 62 F(MC_EVACUATE_REBALANCE) \
63 F(MC_EVACUATE_UPDATE_POINTERS) \ 63 F(MC_EVACUATE_UPDATE_POINTERS) \
64 F(MC_EVACUATE_UPDATE_POINTERS_TO_EVACUATED) \ 64 F(MC_EVACUATE_UPDATE_POINTERS_TO_EVACUATED) \
65 F(MC_EVACUATE_UPDATE_POINTERS_TO_NEW) \ 65 F(MC_EVACUATE_UPDATE_POINTERS_TO_NEW) \
66 F(MC_EVACUATE_UPDATE_POINTERS_WEAK) \ 66 F(MC_EVACUATE_UPDATE_POINTERS_WEAK) \
67 F(MC_FINISH) \ 67 F(MC_FINISH) \
68 F(MC_MARK) \ 68 F(MC_MARK) \
69 F(MC_MARK_FINISH_INCREMENTAL) \ 69 F(MC_MARK_FINISH_INCREMENTAL) \
70 F(MC_MARK_PREPARE_CODE_FLUSH) \ 70 F(MC_MARK_PREPARE_CODE_FLUSH) \
71 F(MC_MARK_ROOTS) \ 71 F(MC_MARK_ROOTS) \
72 F(MC_MARK_WEAK_CLOSURE) \ 72 F(MC_MARK_WEAK_CLOSURE) \
73 F(MC_MARK_WEAK_CLOSURE_EPHEMERAL) \ 73 F(MC_MARK_WEAK_CLOSURE_EPHEMERAL) \
74 F(MC_MARK_WEAK_CLOSURE_WEAK_HANDLES) \ 74 F(MC_MARK_WEAK_CLOSURE_WEAK_HANDLES) \
75 F(MC_MARK_WEAK_CLOSURE_WEAK_ROOTS) \ 75 F(MC_MARK_WEAK_CLOSURE_WEAK_ROOTS) \
76 F(MC_MARK_WEAK_CLOSURE_HARMONY) \ 76 F(MC_MARK_WEAK_CLOSURE_HARMONY) \
77 F(MC_MARK_WRAPPER_EPILOGUE) \ 77 F(MC_MARK_WRAPPER_EPILOGUE) \
78 F(MC_MARK_WRAPPER_PROLOGUE) \ 78 F(MC_MARK_WRAPPER_PROLOGUE) \
79 F(MC_MARK_WRAPPER_TRACING) \ 79 F(MC_MARK_WRAPPER_TRACING) \
80 F(MC_PROLOGUE) \ 80 F(MC_PROLOGUE) \
81 F(MC_SWEEP) \ 81 F(MC_SWEEP) \
82 F(MC_SWEEP_CODE) \ 82 F(MC_SWEEP_CODE) \
83 F(MC_SWEEP_MAP) \ 83 F(MC_SWEEP_MAP) \
84 F(MC_SWEEP_OLD) \ 84 F(MC_SWEEP_OLD) \
85 F(MC_MINOR_MC) \ 85 F(MC_MINOR_MC) \
86 F(MINOR_MC_MARK) \ 86 F(MINOR_MC_CLEAR_LIVENESS) \
87 F(MINOR_MC_MARK_CODE_FLUSH_CANDIDATES) \ 87 F(MINOR_MC_EVACUATE_PROCESS_BLACK_ALLOCATION) \
88 F(MINOR_MC_MARK_GLOBAL_HANDLES) \ 88 F(MINOR_MC_MARK) \
89 F(MINOR_MC_MARK_OLD_TO_NEW_POINTERS) \ 89 F(MINOR_MC_MARK_CODE_FLUSH_CANDIDATES) \
90 F(MINOR_MC_MARK_ROOTS) \ 90 F(MINOR_MC_MARK_GLOBAL_HANDLES) \
91 F(MINOR_MC_MARK_WEAK) \ 91 F(MINOR_MC_MARK_OLD_TO_NEW_POINTERS) \
92 F(SCAVENGER_CODE_FLUSH_CANDIDATES) \ 92 F(MINOR_MC_MARK_ROOTS) \
93 F(SCAVENGER_EVACUATE) \ 93 F(MINOR_MC_MARK_WEAK) \
94 F(SCAVENGER_OLD_TO_NEW_POINTERS) \ 94 F(SCAVENGER_CODE_FLUSH_CANDIDATES) \
95 F(SCAVENGER_ROOTS) \ 95 F(SCAVENGER_EVACUATE) \
96 F(SCAVENGER_SCAVENGE) \ 96 F(SCAVENGER_OLD_TO_NEW_POINTERS) \
97 F(SCAVENGER_SEMISPACE) \ 97 F(SCAVENGER_ROOTS) \
98 F(SCAVENGER_SCAVENGE) \
99 F(SCAVENGER_SEMISPACE) \
98 F(SCAVENGER_WEAK) 100 F(SCAVENGER_WEAK)
99 101
100 #define TRACE_GC(tracer, scope_id) \ 102 #define TRACE_GC(tracer, scope_id) \
101 GCTracer::Scope::ScopeId gc_tracer_scope_id(scope_id); \ 103 GCTracer::Scope::ScopeId gc_tracer_scope_id(scope_id); \
102 GCTracer::Scope gc_tracer_scope(tracer, gc_tracer_scope_id); \ 104 GCTracer::Scope gc_tracer_scope(tracer, gc_tracer_scope_id); \
103 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.gc"), \ 105 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.gc"), \
104 GCTracer::Scope::Name(gc_tracer_scope_id)) 106 GCTracer::Scope::Name(gc_tracer_scope_id))
105 107
106 // GCTracer collects and prints ONE line after each garbage collector 108 // GCTracer collects and prints ONE line after each garbage collector
107 // invocation IFF --trace_gc is used. 109 // invocation IFF --trace_gc is used.
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_; 439 base::RingBuffer<BytesAndDuration> recorded_old_generation_allocations_;
438 base::RingBuffer<double> recorded_context_disposal_times_; 440 base::RingBuffer<double> recorded_context_disposal_times_;
439 base::RingBuffer<double> recorded_survival_ratios_; 441 base::RingBuffer<double> recorded_survival_ratios_;
440 442
441 DISALLOW_COPY_AND_ASSIGN(GCTracer); 443 DISALLOW_COPY_AND_ASSIGN(GCTracer);
442 }; 444 };
443 } // namespace internal 445 } // namespace internal
444 } // namespace v8 446 } // namespace v8
445 447
446 #endif // V8_HEAP_GC_TRACER_H_ 448 #endif // V8_HEAP_GC_TRACER_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698