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

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

Issue 1154873003: Add old generation allocation throughput computation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix CE Created 5 years, 6 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 | « src/heap/gc-idle-time-handler.h ('k') | src/heap/gc-tracer.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 PrintF("sweeping_in_progress=%d ", sweeping_in_progress); 53 PrintF("sweeping_in_progress=%d ", sweeping_in_progress);
54 PrintF("mark_compact_speed=%" V8_PTR_PREFIX "d ", 54 PrintF("mark_compact_speed=%" V8_PTR_PREFIX "d ",
55 mark_compact_speed_in_bytes_per_ms); 55 mark_compact_speed_in_bytes_per_ms);
56 PrintF("incremental_marking_speed=%" V8_PTR_PREFIX "d ", 56 PrintF("incremental_marking_speed=%" V8_PTR_PREFIX "d ",
57 incremental_marking_speed_in_bytes_per_ms); 57 incremental_marking_speed_in_bytes_per_ms);
58 PrintF("scavenge_speed=%" V8_PTR_PREFIX "d ", scavenge_speed_in_bytes_per_ms); 58 PrintF("scavenge_speed=%" V8_PTR_PREFIX "d ", scavenge_speed_in_bytes_per_ms);
59 PrintF("new_space_size=%" V8_PTR_PREFIX "d ", used_new_space_size); 59 PrintF("new_space_size=%" V8_PTR_PREFIX "d ", used_new_space_size);
60 PrintF("new_space_capacity=%" V8_PTR_PREFIX "d ", new_space_capacity); 60 PrintF("new_space_capacity=%" V8_PTR_PREFIX "d ", new_space_capacity);
61 PrintF("new_space_allocation_throughput=%" V8_PTR_PREFIX "d ", 61 PrintF("new_space_allocation_throughput=%" V8_PTR_PREFIX "d ",
62 new_space_allocation_throughput_in_bytes_per_ms); 62 new_space_allocation_throughput_in_bytes_per_ms);
63 PrintF("current_new_space_allocation_throughput=%" V8_PTR_PREFIX "d", 63 PrintF("current_allocation_throughput=%" V8_PTR_PREFIX "d",
64 current_new_space_allocation_throughput_in_bytes_per_ms); 64 current_allocation_throughput_in_bytes_per_ms);
65 } 65 }
66 66
67 67
68 size_t GCIdleTimeHandler::EstimateMarkingStepSize( 68 size_t GCIdleTimeHandler::EstimateMarkingStepSize(
69 size_t idle_time_in_ms, size_t marking_speed_in_bytes_per_ms) { 69 size_t idle_time_in_ms, size_t marking_speed_in_bytes_per_ms) {
70 DCHECK(idle_time_in_ms > 0); 70 DCHECK(idle_time_in_ms > 0);
71 71
72 if (marking_speed_in_bytes_per_ms == 0) { 72 if (marking_speed_in_bytes_per_ms == 0) {
73 marking_speed_in_bytes_per_ms = kInitialConservativeMarkingSpeed; 73 marking_speed_in_bytes_per_ms = kInitialConservativeMarkingSpeed;
74 } 74 }
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 } 407 }
408 if (mutator_gcs > idle_mark_compacts_) { 408 if (mutator_gcs > idle_mark_compacts_) {
409 return kReduceLatency; 409 return kReduceLatency;
410 } 410 }
411 break; 411 break;
412 } 412 }
413 return mode_; 413 return mode_;
414 } 414 }
415 } 415 }
416 } 416 }
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.h ('k') | src/heap/gc-tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698