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 #include "src/globals.h" | 9 #include "src/globals.h" |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // GCTracer collects and prints ONE line after each garbage collector | 92 // GCTracer collects and prints ONE line after each garbage collector |
93 // invocation IFF --trace_gc is used. | 93 // invocation IFF --trace_gc is used. |
94 // TODO(ernstm): Unit tests. | 94 // TODO(ernstm): Unit tests. |
95 class GCTracer { | 95 class GCTracer { |
96 public: | 96 public: |
97 class Scope { | 97 class Scope { |
98 public: | 98 public: |
99 enum ScopeId { | 99 enum ScopeId { |
100 EXTERNAL, | 100 EXTERNAL, |
101 MC_MARK, | 101 MC_MARK, |
| 102 MC_MARK_FINISH_INCREMENTAL, |
| 103 MC_MARK_PREPARE_CODE_FLUSH, |
| 104 MC_MARK_ROOT, |
| 105 MC_MARK_TOPOPT, |
| 106 MC_MARK_RETAIN_MAPS, |
| 107 MC_MARK_WEAK_CLOSURE, |
| 108 MC_MARK_STRING_TABLE, |
| 109 MC_MARK_WEAK_REFERENCES, |
| 110 MC_MARK_GLOBAL_HANDLES, |
| 111 MC_MARK_CODE_FLUSH, |
102 MC_SWEEP, | 112 MC_SWEEP, |
103 MC_SWEEP_NEWSPACE, | 113 MC_SWEEP_NEWSPACE, |
104 MC_SWEEP_OLDSPACE, | 114 MC_SWEEP_OLDSPACE, |
105 MC_SWEEP_CODE, | 115 MC_SWEEP_CODE, |
106 MC_SWEEP_CELL, | 116 MC_SWEEP_CELL, |
107 MC_SWEEP_MAP, | 117 MC_SWEEP_MAP, |
108 MC_EVACUATE_PAGES, | 118 MC_EVACUATE_PAGES, |
109 MC_UPDATE_NEW_TO_NEW_POINTERS, | 119 MC_UPDATE_NEW_TO_NEW_POINTERS, |
110 MC_UPDATE_ROOT_TO_NEW_POINTERS, | 120 MC_UPDATE_ROOT_TO_NEW_POINTERS, |
111 MC_UPDATE_OLD_TO_NEW_POINTERS, | 121 MC_UPDATE_OLD_TO_NEW_POINTERS, |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 | 565 |
556 // Counts how many tracers were started without stopping. | 566 // Counts how many tracers were started without stopping. |
557 int start_counter_; | 567 int start_counter_; |
558 | 568 |
559 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 569 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
560 }; | 570 }; |
561 } // namespace internal | 571 } // namespace internal |
562 } // namespace v8 | 572 } // namespace v8 |
563 | 573 |
564 #endif // V8_HEAP_GC_TRACER_H_ | 574 #endif // V8_HEAP_GC_TRACER_H_ |
OLD | NEW |