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 #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 Loading... |
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 Loading... |
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 } |
OLD | NEW |