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 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_ | 5 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_ | 6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
7 | 7 |
8 #include "src/globals.h" | 8 #include "src/globals.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 public: | 174 public: |
175 void Print(); | 175 void Print(); |
176 | 176 |
177 int contexts_disposed; | 177 int contexts_disposed; |
178 double contexts_disposal_rate; | 178 double contexts_disposal_rate; |
179 size_t size_of_objects; | 179 size_t size_of_objects; |
180 bool incremental_marking_stopped; | 180 bool incremental_marking_stopped; |
181 bool can_start_incremental_marking; | 181 bool can_start_incremental_marking; |
182 bool sweeping_in_progress; | 182 bool sweeping_in_progress; |
183 bool sweeping_completed; | 183 bool sweeping_completed; |
| 184 bool has_low_allocation_rate; |
184 size_t mark_compact_speed_in_bytes_per_ms; | 185 size_t mark_compact_speed_in_bytes_per_ms; |
185 size_t incremental_marking_speed_in_bytes_per_ms; | 186 size_t incremental_marking_speed_in_bytes_per_ms; |
186 size_t final_incremental_mark_compact_speed_in_bytes_per_ms; | 187 size_t final_incremental_mark_compact_speed_in_bytes_per_ms; |
187 size_t scavenge_speed_in_bytes_per_ms; | 188 size_t scavenge_speed_in_bytes_per_ms; |
188 size_t used_new_space_size; | 189 size_t used_new_space_size; |
189 size_t new_space_capacity; | 190 size_t new_space_capacity; |
190 size_t new_space_allocation_throughput_in_bytes_per_ms; | 191 size_t new_space_allocation_throughput_in_bytes_per_ms; |
191 size_t current_allocation_throughput_in_bytes_per_ms; | |
192 }; | 192 }; |
193 | 193 |
194 GCIdleTimeHandler() | 194 GCIdleTimeHandler() |
195 : idle_mark_compacts_(0), | 195 : idle_mark_compacts_(0), |
196 mark_compacts_(0), | 196 mark_compacts_(0), |
197 scavenges_(0), | 197 scavenges_(0), |
198 long_idle_notifications_(0), | 198 long_idle_notifications_(0), |
199 background_idle_notifications_(0), | 199 background_idle_notifications_(0), |
200 idle_times_which_made_no_progress_per_mode_(0), | 200 idle_times_which_made_no_progress_per_mode_(0), |
201 next_gc_likely_to_collect_more_(false), | 201 next_gc_likely_to_collect_more_(false), |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 Mode mode_; | 271 Mode mode_; |
272 | 272 |
273 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); | 273 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); |
274 }; | 274 }; |
275 | 275 |
276 } // namespace internal | 276 } // namespace internal |
277 } // namespace v8 | 277 } // namespace v8 |
278 | 278 |
279 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ | 279 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
OLD | NEW |