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

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

Issue 1235913002: Add scavenger events to GC tracer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comments Created 5 years, 5 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 | « no previous file | 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/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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698