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 4523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |