| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 MC_UPDATE_OLD_TO_NEW_POINTERS, | 110 MC_UPDATE_OLD_TO_NEW_POINTERS, |
| 111 MC_UPDATE_POINTERS_TO_EVACUATED, | 111 MC_UPDATE_POINTERS_TO_EVACUATED, |
| 112 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, | 112 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, |
| 113 MC_UPDATE_MISC_POINTERS, | 113 MC_UPDATE_MISC_POINTERS, |
| 114 MC_INCREMENTAL_WEAKCLOSURE, | 114 MC_INCREMENTAL_WEAKCLOSURE, |
| 115 MC_WEAKCLOSURE, | 115 MC_WEAKCLOSURE, |
| 116 MC_WEAKCOLLECTION_PROCESS, | 116 MC_WEAKCOLLECTION_PROCESS, |
| 117 MC_WEAKCOLLECTION_CLEAR, | 117 MC_WEAKCOLLECTION_CLEAR, |
| 118 MC_WEAKCOLLECTION_ABORT, | 118 MC_WEAKCOLLECTION_ABORT, |
| 119 MC_FLUSH_CODE, | 119 MC_FLUSH_CODE, |
| 120 SCAVENGER_CODE_FLUSH_CANDIDATES, |
| 121 SCAVENGER_OBJECT_GROUPS, |
| 122 SCAVENGER_OLD_TO_NEW_POINTERS, |
| 123 SCAVENGER_ROOTS, |
| 124 SCAVENGER_SCAVENGE, |
| 125 SCAVENGER_SEMISPACE, |
| 126 SCAVENGER_WEAK, |
| 120 NUMBER_OF_SCOPES | 127 NUMBER_OF_SCOPES |
| 121 }; | 128 }; |
| 122 | 129 |
| 123 Scope(GCTracer* tracer, ScopeId scope) : tracer_(tracer), scope_(scope) { | 130 Scope(GCTracer* tracer, ScopeId scope) : tracer_(tracer), scope_(scope) { |
| 124 start_time_ = base::OS::TimeCurrentMillis(); | 131 start_time_ = base::OS::TimeCurrentMillis(); |
| 125 } | 132 } |
| 126 | 133 |
| 127 ~Scope() { | 134 ~Scope() { |
| 128 DCHECK(scope_ < NUMBER_OF_SCOPES); // scope_ is unsigned. | 135 DCHECK(scope_ < NUMBER_OF_SCOPES); // scope_ is unsigned. |
| 129 tracer_->current_.scopes[scope_] += | 136 tracer_->current_.scopes[scope_] += |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 | 542 |
| 536 // Counts how many tracers were started without stopping. | 543 // Counts how many tracers were started without stopping. |
| 537 int start_counter_; | 544 int start_counter_; |
| 538 | 545 |
| 539 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 546 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 540 }; | 547 }; |
| 541 } | 548 } |
| 542 } // namespace v8::internal | 549 } // namespace v8::internal |
| 543 | 550 |
| 544 #endif // V8_HEAP_GC_TRACER_H_ | 551 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |