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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/gc-tracer.h" | 7 #include "src/gc-tracer.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 PrintF("promotion_rate=%.1f%% ", heap_->promotion_rate_); | 273 PrintF("promotion_rate=%.1f%% ", heap_->promotion_rate_); |
274 PrintF("semi_space_copy_rate=%.1f%% ", heap_->semi_space_copied_rate_); | 274 PrintF("semi_space_copy_rate=%.1f%% ", heap_->semi_space_copied_rate_); |
275 | 275 |
276 if (current_.type == Event::SCAVENGER) { | 276 if (current_.type == Event::SCAVENGER) { |
277 PrintF("steps_count=%d ", current_.incremental_marking_steps); | 277 PrintF("steps_count=%d ", current_.incremental_marking_steps); |
278 PrintF("steps_took=%.1f ", current_.incremental_marking_duration); | 278 PrintF("steps_took=%.1f ", current_.incremental_marking_duration); |
279 } else { | 279 } else { |
280 PrintF("steps_count=%d ", current_.incremental_marking_steps); | 280 PrintF("steps_count=%d ", current_.incremental_marking_steps); |
281 PrintF("steps_took=%.1f ", current_.incremental_marking_duration); | 281 PrintF("steps_took=%.1f ", current_.incremental_marking_duration); |
282 PrintF("longest_step=%.1f ", current_.longest_incremental_marking_step); | 282 PrintF("longest_step=%.1f ", current_.longest_incremental_marking_step); |
283 PrintF("marking_throughput=%d\n", MarkingSpeedInBytesPerMillisecond()); | 283 PrintF("marking_throughput=%" V8_PTR_PREFIX "d ", |
| 284 MarkingSpeedInBytesPerMillisecond()); |
284 } | 285 } |
285 | 286 |
286 PrintF("\n"); | 287 PrintF("\n"); |
287 } | 288 } |
288 | 289 |
289 | 290 |
290 double GCTracer::MeanDuration(const EventBuffer& events) const { | 291 double GCTracer::MeanDuration(const EventBuffer& events) const { |
291 if (events.empty()) return 0.0; | 292 if (events.empty()) return 0.0; |
292 | 293 |
293 double mean = 0.0; | 294 double mean = 0.0; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 durations += iter->incremental_marking_duration; | 373 durations += iter->incremental_marking_duration; |
373 ++iter; | 374 ++iter; |
374 } | 375 } |
375 | 376 |
376 if (durations == 0.0) return 0; | 377 if (durations == 0.0) return 0; |
377 | 378 |
378 return static_cast<intptr_t>(bytes / durations); | 379 return static_cast<intptr_t>(bytes / durations); |
379 } | 380 } |
380 } | 381 } |
381 } // namespace v8::internal | 382 } // namespace v8::internal |
OLD | NEW |