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

Side by Side Diff: src/heap/gc-idle-time-handler.cc

Issue 775013002: Print finalize incremental marking event in idle notification. (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.h ('k') | src/heap/heap.h » ('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 #include "src/heap/gc-idle-time-handler.h" 5 #include "src/heap/gc-idle-time-handler.h"
6 #include "src/heap/gc-tracer.h" 6 #include "src/heap/gc-tracer.h"
7 #include "src/utils.h" 7 #include "src/utils.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 11 matching lines...) Expand all
22 switch (type) { 22 switch (type) {
23 case DONE: 23 case DONE:
24 PrintF("done"); 24 PrintF("done");
25 break; 25 break;
26 case DO_NOTHING: 26 case DO_NOTHING:
27 PrintF("no action"); 27 PrintF("no action");
28 break; 28 break;
29 case DO_INCREMENTAL_MARKING: 29 case DO_INCREMENTAL_MARKING:
30 PrintF("incremental marking with step %" V8_PTR_PREFIX "d / ms", 30 PrintF("incremental marking with step %" V8_PTR_PREFIX "d / ms",
31 parameter); 31 parameter);
32 if (additional_work) {
33 PrintF("; finalized marking");
34 }
32 break; 35 break;
33 case DO_SCAVENGE: 36 case DO_SCAVENGE:
34 PrintF("scavenge"); 37 PrintF("scavenge");
35 break; 38 break;
36 case DO_FULL_GC: 39 case DO_FULL_GC:
37 PrintF("full GC"); 40 PrintF("full GC");
38 break; 41 break;
39 case DO_FINALIZE_SWEEPING: 42 case DO_FINALIZE_SWEEPING:
40 PrintF("finalize sweeping"); 43 PrintF("finalize sweeping");
41 break; 44 break;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 !heap_state.can_start_incremental_marking) { 253 !heap_state.can_start_incremental_marking) {
251 return GCIdleTimeAction::Nothing(); 254 return GCIdleTimeAction::Nothing();
252 } 255 }
253 size_t step_size = EstimateMarkingStepSize( 256 size_t step_size = EstimateMarkingStepSize(
254 static_cast<size_t>(kIncrementalMarkingStepTimeInMs), 257 static_cast<size_t>(kIncrementalMarkingStepTimeInMs),
255 heap_state.incremental_marking_speed_in_bytes_per_ms); 258 heap_state.incremental_marking_speed_in_bytes_per_ms);
256 return GCIdleTimeAction::IncrementalMarking(step_size); 259 return GCIdleTimeAction::IncrementalMarking(step_size);
257 } 260 }
258 } 261 }
259 } 262 }
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.h ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698