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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 PrintF("incremental_marking_stopped=%d ", incremental_marking_stopped); | 51 PrintF("incremental_marking_stopped=%d ", incremental_marking_stopped); |
52 PrintF("can_start_incremental_marking=%d ", can_start_incremental_marking); | 52 PrintF("can_start_incremental_marking=%d ", can_start_incremental_marking); |
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", |
| 64 current_new_space_allocation_throughput_in_bytes_per_ms); |
63 } | 65 } |
64 | 66 |
65 | 67 |
66 size_t GCIdleTimeHandler::EstimateMarkingStepSize( | 68 size_t GCIdleTimeHandler::EstimateMarkingStepSize( |
67 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) { |
68 DCHECK(idle_time_in_ms > 0); | 70 DCHECK(idle_time_in_ms > 0); |
69 | 71 |
70 if (marking_speed_in_bytes_per_ms == 0) { | 72 if (marking_speed_in_bytes_per_ms == 0) { |
71 marking_speed_in_bytes_per_ms = kInitialConservativeMarkingSpeed; | 73 marking_speed_in_bytes_per_ms = kInitialConservativeMarkingSpeed; |
72 } | 74 } |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 407 } |
406 if (mutator_gcs > idle_mark_compacts_) { | 408 if (mutator_gcs > idle_mark_compacts_) { |
407 return kReduceLatency; | 409 return kReduceLatency; |
408 } | 410 } |
409 break; | 411 break; |
410 } | 412 } |
411 return mode_; | 413 return mode_; |
412 } | 414 } |
413 } | 415 } |
414 } | 416 } |
OLD | NEW |