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

Side by Side Diff: src/heap/heap.cc

Issue 771123002: Fix idle time trace printing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
« 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 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 4523 matching lines...) Expand 10 before | Expand all | Expand 10 after
4534 } else { 4534 } else {
4535 isolate()->counters()->gc_idle_time_limit_overshot()->AddSample( 4535 isolate()->counters()->gc_idle_time_limit_overshot()->AddSample(
4536 static_cast<int>(-deadline_difference)); 4536 static_cast<int>(-deadline_difference));
4537 } 4537 }
4538 4538
4539 if ((FLAG_trace_idle_notification && action.type > DO_NOTHING) || 4539 if ((FLAG_trace_idle_notification && action.type > DO_NOTHING) ||
4540 FLAG_trace_idle_notification_verbose) { 4540 FLAG_trace_idle_notification_verbose) {
4541 PrintF( 4541 PrintF(
4542 "Idle notification: requested idle time %.2f ms, used idle time %.2f " 4542 "Idle notification: requested idle time %.2f ms, used idle time %.2f "
4543 "ms, deadline usage %.2f ms [", 4543 "ms, deadline usage %.2f ms [",
4544 idle_time_in_ms, current_time, deadline_difference); 4544 idle_time_in_ms, idle_time_in_ms - deadline_difference,
4545 deadline_difference);
4545 action.Print(); 4546 action.Print();
4546 PrintF("]"); 4547 PrintF("]");
4547 if (FLAG_trace_idle_notification_verbose) { 4548 if (FLAG_trace_idle_notification_verbose) {
4548 PrintF("["); 4549 PrintF("[");
4549 heap_state.Print(); 4550 heap_state.Print();
4550 PrintF("]"); 4551 PrintF("]");
4551 } 4552 }
4552 PrintF("\n"); 4553 PrintF("\n");
4553 } 4554 }
4554 4555
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
6369 static_cast<int>(object_sizes_last_time_[index])); 6370 static_cast<int>(object_sizes_last_time_[index]));
6370 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6371 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6371 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6372 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6372 6373
6373 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6374 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6374 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6375 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6375 ClearObjectStats(); 6376 ClearObjectStats();
6376 } 6377 }
6377 } 6378 }
6378 } // namespace v8::internal 6379 } // 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