| 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 4467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4478 if (actual_time_in_ms <= idle_time_in_ms) { | 4478 if (actual_time_in_ms <= idle_time_in_ms) { |
| 4479 if (action.type != DONE && action.type != DO_NOTHING) { | 4479 if (action.type != DONE && action.type != DO_NOTHING) { |
| 4480 isolate()->counters()->gc_idle_time_limit_undershot()->AddSample( | 4480 isolate()->counters()->gc_idle_time_limit_undershot()->AddSample( |
| 4481 idle_time_in_ms - actual_time_in_ms); | 4481 idle_time_in_ms - actual_time_in_ms); |
| 4482 } | 4482 } |
| 4483 } else { | 4483 } else { |
| 4484 isolate()->counters()->gc_idle_time_limit_overshot()->AddSample( | 4484 isolate()->counters()->gc_idle_time_limit_overshot()->AddSample( |
| 4485 actual_time_in_ms - idle_time_in_ms); | 4485 actual_time_in_ms - idle_time_in_ms); |
| 4486 } | 4486 } |
| 4487 | 4487 |
| 4488 if (FLAG_trace_idle_notification) { | 4488 if ((FLAG_trace_idle_notification && action.type > DO_NOTHING) || |
| 4489 FLAG_trace_idle_notification_verbose) { |
| 4489 PrintF("Idle notification: requested idle time %d ms, actual time %d ms [", | 4490 PrintF("Idle notification: requested idle time %d ms, actual time %d ms [", |
| 4490 idle_time_in_ms, actual_time_in_ms); | 4491 idle_time_in_ms, actual_time_in_ms); |
| 4491 action.Print(); | 4492 action.Print(); |
| 4492 PrintF("]"); | 4493 PrintF("]"); |
| 4493 if (FLAG_trace_idle_notification_verbose) { | 4494 if (FLAG_trace_idle_notification_verbose) { |
| 4494 PrintF("["); | 4495 PrintF("["); |
| 4495 heap_state.Print(); | 4496 heap_state.Print(); |
| 4496 PrintF("]"); | 4497 PrintF("]"); |
| 4497 } | 4498 } |
| 4498 PrintF("\n"); | 4499 PrintF("\n"); |
| (...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6316 static_cast<int>(object_sizes_last_time_[index])); | 6317 static_cast<int>(object_sizes_last_time_[index])); |
| 6317 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6318 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 6318 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6319 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 6319 | 6320 |
| 6320 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6321 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 6321 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6322 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 6322 ClearObjectStats(); | 6323 ClearObjectStats(); |
| 6323 } | 6324 } |
| 6324 } | 6325 } |
| 6325 } // namespace v8::internal | 6326 } // namespace v8::internal |
| OLD | NEW |