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

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

Issue 750963002: Reduce context disposal gc overhead. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/heap/gc-idle-time-handler.cc ('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/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 double pure_incremental_marking_duration; 241 double pure_incremental_marking_duration;
242 242
243 // Longest incremental marking step since start of marking. 243 // Longest incremental marking step since start of marking.
244 // (value at start of event) 244 // (value at start of event)
245 double longest_incremental_marking_step; 245 double longest_incremental_marking_step;
246 246
247 // Amounts of time spent in different scopes during GC. 247 // Amounts of time spent in different scopes during GC.
248 double scopes[Scope::NUMBER_OF_SCOPES]; 248 double scopes[Scope::NUMBER_OF_SCOPES];
249 }; 249 };
250 250
251 static const int kRingBufferMaxSize = 10; 251 static const size_t kRingBufferMaxSize = 10;
252 252
253 typedef RingBuffer<Event, kRingBufferMaxSize> EventBuffer; 253 typedef RingBuffer<Event, kRingBufferMaxSize> EventBuffer;
254 254
255 typedef RingBuffer<AllocationEvent, kRingBufferMaxSize> AllocationEventBuffer; 255 typedef RingBuffer<AllocationEvent, kRingBufferMaxSize> AllocationEventBuffer;
256 256
257 typedef RingBuffer<ContextDisposalEvent, kRingBufferMaxSize> 257 typedef RingBuffer<ContextDisposalEvent, kRingBufferMaxSize>
258 ContextDisposalEventBuffer; 258 ContextDisposalEventBuffer;
259 259
260 explicit GCTracer(Heap* heap); 260 explicit GCTracer(Heap* heap);
261 261
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // Holds the new space top pointer recorded at the end of the last garbage 418 // Holds the new space top pointer recorded at the end of the last garbage
419 // collection. 419 // collection.
420 intptr_t new_space_top_after_gc_; 420 intptr_t new_space_top_after_gc_;
421 421
422 DISALLOW_COPY_AND_ASSIGN(GCTracer); 422 DISALLOW_COPY_AND_ASSIGN(GCTracer);
423 }; 423 };
424 } 424 }
425 } // namespace v8::internal 425 } // namespace v8::internal
426 426
427 #endif // V8_HEAP_GC_TRACER_H_ 427 #endif // V8_HEAP_GC_TRACER_H_
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698