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 4684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4695 isolate()->counters()->gc_idle_time_limit_undershot()->AddSample( | 4695 isolate()->counters()->gc_idle_time_limit_undershot()->AddSample( |
4696 static_cast<int>(deadline_difference)); | 4696 static_cast<int>(deadline_difference)); |
4697 } | 4697 } |
4698 } else { | 4698 } else { |
4699 isolate()->counters()->gc_idle_time_limit_overshot()->AddSample( | 4699 isolate()->counters()->gc_idle_time_limit_overshot()->AddSample( |
4700 static_cast<int>(-deadline_difference)); | 4700 static_cast<int>(-deadline_difference)); |
4701 } | 4701 } |
4702 | 4702 |
4703 if ((FLAG_trace_idle_notification && action.type > DO_NOTHING) || | 4703 if ((FLAG_trace_idle_notification && action.type > DO_NOTHING) || |
4704 FLAG_trace_idle_notification_verbose) { | 4704 FLAG_trace_idle_notification_verbose) { |
| 4705 PrintPID("%8.0f ms: ", isolate()->time_millis_since_init()); |
4705 PrintF( | 4706 PrintF( |
4706 "Idle notification: requested idle time %.2f ms, used idle time %.2f " | 4707 "Idle notification: requested idle time %.2f ms, used idle time %.2f " |
4707 "ms, deadline usage %.2f ms [", | 4708 "ms, deadline usage %.2f ms [", |
4708 idle_time_in_ms, idle_time_in_ms - deadline_difference, | 4709 idle_time_in_ms, idle_time_in_ms - deadline_difference, |
4709 deadline_difference); | 4710 deadline_difference); |
4710 action.Print(); | 4711 action.Print(); |
4711 PrintF("]"); | 4712 PrintF("]"); |
4712 if (FLAG_trace_idle_notification_verbose) { | 4713 if (FLAG_trace_idle_notification_verbose) { |
4713 PrintF("["); | 4714 PrintF("["); |
4714 heap_state.Print(); | 4715 heap_state.Print(); |
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6393 static_cast<int>(object_sizes_last_time_[index])); | 6394 static_cast<int>(object_sizes_last_time_[index])); |
6394 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6395 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6395 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6396 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6396 | 6397 |
6397 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6398 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6398 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6399 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6399 ClearObjectStats(); | 6400 ClearObjectStats(); |
6400 } | 6401 } |
6401 } | 6402 } |
6402 } // namespace v8::internal | 6403 } // namespace v8::internal |
OLD | NEW |