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

Side by Side Diff: src/heap/gc-tracer.cc

Issue 568433003: Unbreak build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/heap/gc-tracer.h" 7 #include "src/heap/gc-tracer.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 current_.start_object_size - previous_.end_object_size; 310 current_.start_object_size - previous_.end_object_size;
311 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc); 311 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc);
312 PrintF("promoted=%" V8_PTR_PREFIX "d ", heap_->promoted_objects_size_); 312 PrintF("promoted=%" V8_PTR_PREFIX "d ", heap_->promoted_objects_size_);
313 PrintF("semi_space_copied=%" V8_PTR_PREFIX "d ", 313 PrintF("semi_space_copied=%" V8_PTR_PREFIX "d ",
314 heap_->semi_space_copied_object_size_); 314 heap_->semi_space_copied_object_size_);
315 PrintF("nodes_died_in_new=%d ", heap_->nodes_died_in_new_space_); 315 PrintF("nodes_died_in_new=%d ", heap_->nodes_died_in_new_space_);
316 PrintF("nodes_copied_in_new=%d ", heap_->nodes_copied_in_new_space_); 316 PrintF("nodes_copied_in_new=%d ", heap_->nodes_copied_in_new_space_);
317 PrintF("nodes_promoted=%d ", heap_->nodes_promoted_); 317 PrintF("nodes_promoted=%d ", heap_->nodes_promoted_);
318 PrintF("promotion_rate=%.1f%% ", heap_->promotion_rate_); 318 PrintF("promotion_rate=%.1f%% ", heap_->promotion_rate_);
319 PrintF("semi_space_copy_rate=%.1f%% ", heap_->semi_space_copied_rate_); 319 PrintF("semi_space_copy_rate=%.1f%% ", heap_->semi_space_copied_rate_);
320 PrintF("new_space_allocation_throughput=%d ", 320 PrintF("new_space_allocation_throughput=%" V8_PTR_PREFIX "d ",
321 NewSpaceAllocationThroughputInBytesPerMillisecond()); 321 NewSpaceAllocationThroughputInBytesPerMillisecond());
322 322
323 if (current_.type == Event::SCAVENGER) { 323 if (current_.type == Event::SCAVENGER) {
324 PrintF("steps_count=%d ", current_.incremental_marking_steps); 324 PrintF("steps_count=%d ", current_.incremental_marking_steps);
325 PrintF("steps_took=%.1f ", current_.incremental_marking_duration); 325 PrintF("steps_took=%.1f ", current_.incremental_marking_duration);
326 PrintF("scavenge_throughput=%" V8_PTR_PREFIX "d ", 326 PrintF("scavenge_throughput=%" V8_PTR_PREFIX "d ",
327 ScavengeSpeedInBytesPerMillisecond()); 327 ScavengeSpeedInBytesPerMillisecond());
328 } else { 328 } else {
329 PrintF("steps_count=%d ", current_.incremental_marking_steps); 329 PrintF("steps_count=%d ", current_.incremental_marking_steps);
330 PrintF("steps_took=%.1f ", current_.incremental_marking_duration); 330 PrintF("steps_took=%.1f ", current_.incremental_marking_duration);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 durations += iter->duration_; 471 durations += iter->duration_;
472 ++iter; 472 ++iter;
473 } 473 }
474 474
475 if (durations == 0.0) return 0; 475 if (durations == 0.0) return 0;
476 476
477 return static_cast<intptr_t>(bytes / durations); 477 return static_cast<intptr_t>(bytes / durations);
478 } 478 }
479 } 479 }
480 } // namespace v8::internal 480 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698