OLD | NEW |
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/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 5286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5297 UpdateMaximumCommitted(); | 5297 UpdateMaximumCommitted(); |
5298 | 5298 |
5299 if (FLAG_print_cumulative_gc_stat) { | 5299 if (FLAG_print_cumulative_gc_stat) { |
5300 PrintF("\n"); | 5300 PrintF("\n"); |
5301 PrintF("gc_count=%d ", gc_count_); | 5301 PrintF("gc_count=%d ", gc_count_); |
5302 PrintF("mark_sweep_count=%d ", ms_count_); | 5302 PrintF("mark_sweep_count=%d ", ms_count_); |
5303 PrintF("max_gc_pause=%.1f ", get_max_gc_pause()); | 5303 PrintF("max_gc_pause=%.1f ", get_max_gc_pause()); |
5304 PrintF("total_gc_time=%.1f ", total_gc_time_ms_); | 5304 PrintF("total_gc_time=%.1f ", total_gc_time_ms_); |
5305 PrintF("min_in_mutator=%.1f ", get_min_in_mutator()); | 5305 PrintF("min_in_mutator=%.1f ", get_min_in_mutator()); |
5306 PrintF("max_alive_after_gc=%" V8_PTR_PREFIX "d ", get_max_alive_after_gc()); | 5306 PrintF("max_alive_after_gc=%" V8_PTR_PREFIX "d ", get_max_alive_after_gc()); |
5307 PrintF("total_marking_time=%.1f ", tracer_.cumulative_sweeping_duration()); | 5307 PrintF("total_marking_time=%.1f ", tracer_.cumulative_marking_duration()); |
5308 PrintF("total_sweeping_time=%.1f ", tracer_.cumulative_sweeping_duration()); | 5308 PrintF("total_sweeping_time=%.1f ", tracer_.cumulative_sweeping_duration()); |
5309 PrintF("\n\n"); | 5309 PrintF("\n\n"); |
5310 } | 5310 } |
5311 | 5311 |
5312 if (FLAG_print_max_heap_committed) { | 5312 if (FLAG_print_max_heap_committed) { |
5313 PrintF("\n"); | 5313 PrintF("\n"); |
5314 PrintF("maximum_committed_by_heap=%" V8_PTR_PREFIX "d ", | 5314 PrintF("maximum_committed_by_heap=%" V8_PTR_PREFIX "d ", |
5315 MaximumCommittedMemory()); | 5315 MaximumCommittedMemory()); |
5316 PrintF("maximum_committed_by_new_space=%" V8_PTR_PREFIX "d ", | 5316 PrintF("maximum_committed_by_new_space=%" V8_PTR_PREFIX "d ", |
5317 new_space_.MaximumCommittedMemory()); | 5317 new_space_.MaximumCommittedMemory()); |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6252 static_cast<int>(object_sizes_last_time_[index])); | 6252 static_cast<int>(object_sizes_last_time_[index])); |
6253 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6253 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6254 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6254 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6255 | 6255 |
6256 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6256 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6257 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6257 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6258 ClearObjectStats(); | 6258 ClearObjectStats(); |
6259 } | 6259 } |
6260 } | 6260 } |
6261 } // namespace v8::internal | 6261 } // namespace v8::internal |
OLD | NEW |