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

Side by Side Diff: src/heap.cc

Issue 432743002: Clean-up and repair cumulative marking and sweeping time stats. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « src/heap.h ('k') | src/incremental-marking.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/once.h" 9 #include "src/base/once.h"
10 #include "src/base/utils/random-number-generator.h" 10 #include "src/base/utils/random-number-generator.h"
(...skipping 5188 matching lines...) Expand 10 before | Expand all | Expand 10 after
5199 5199
5200 if (FLAG_print_cumulative_gc_stat) { 5200 if (FLAG_print_cumulative_gc_stat) {
5201 PrintF("\n"); 5201 PrintF("\n");
5202 PrintF("gc_count=%d ", gc_count_); 5202 PrintF("gc_count=%d ", gc_count_);
5203 PrintF("mark_sweep_count=%d ", ms_count_); 5203 PrintF("mark_sweep_count=%d ", ms_count_);
5204 PrintF("max_gc_pause=%.1f ", get_max_gc_pause()); 5204 PrintF("max_gc_pause=%.1f ", get_max_gc_pause());
5205 PrintF("total_gc_time=%.1f ", total_gc_time_ms_); 5205 PrintF("total_gc_time=%.1f ", total_gc_time_ms_);
5206 PrintF("min_in_mutator=%.1f ", get_min_in_mutator()); 5206 PrintF("min_in_mutator=%.1f ", get_min_in_mutator());
5207 PrintF("max_alive_after_gc=%" V8_PTR_PREFIX "d ", 5207 PrintF("max_alive_after_gc=%" V8_PTR_PREFIX "d ",
5208 get_max_alive_after_gc()); 5208 get_max_alive_after_gc());
5209 PrintF("total_marking_time=%.1f ", marking_time()); 5209 PrintF("total_marking_time=%.1f ", tracer_.cumulative_sweeping_duration());
5210 PrintF("total_sweeping_time=%.1f ", sweeping_time()); 5210 PrintF("total_sweeping_time=%.1f ", tracer_.cumulative_sweeping_duration());
5211 PrintF("\n\n"); 5211 PrintF("\n\n");
5212 } 5212 }
5213 5213
5214 if (FLAG_print_max_heap_committed) { 5214 if (FLAG_print_max_heap_committed) {
5215 PrintF("\n"); 5215 PrintF("\n");
5216 PrintF("maximum_committed_by_heap=%" V8_PTR_PREFIX "d ", 5216 PrintF("maximum_committed_by_heap=%" V8_PTR_PREFIX "d ",
5217 MaximumCommittedMemory()); 5217 MaximumCommittedMemory());
5218 PrintF("maximum_committed_by_new_space=%" V8_PTR_PREFIX "d ", 5218 PrintF("maximum_committed_by_new_space=%" V8_PTR_PREFIX "d ",
5219 new_space_.MaximumCommittedMemory()); 5219 new_space_.MaximumCommittedMemory());
5220 PrintF("maximum_committed_by_old_pointer_space=%" V8_PTR_PREFIX "d ", 5220 PrintF("maximum_committed_by_old_pointer_space=%" V8_PTR_PREFIX "d ",
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
6166 static_cast<int>(object_sizes_last_time_[index])); 6166 static_cast<int>(object_sizes_last_time_[index]));
6167 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6167 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6168 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6168 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6169 6169
6170 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6170 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6171 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6171 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6172 ClearObjectStats(); 6172 ClearObjectStats();
6173 } 6173 }
6174 6174
6175 } } // namespace v8::internal 6175 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698