| 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 } | 4478 } |
| 4479 } else { | 4479 } else { |
| 4480 isolate()->counters()->gc_idle_time_limit_overshot()->AddSample( | 4480 isolate()->counters()->gc_idle_time_limit_overshot()->AddSample( |
| 4481 actual_time_in_ms - idle_time_in_ms); | 4481 actual_time_in_ms - idle_time_in_ms); |
| 4482 } | 4482 } |
| 4483 | 4483 |
| 4484 if (FLAG_trace_idle_notification) { | 4484 if (FLAG_trace_idle_notification) { |
| 4485 PrintF("Idle notification: requested idle time %d ms, actual time %d ms [", | 4485 PrintF("Idle notification: requested idle time %d ms, actual time %d ms [", |
| 4486 idle_time_in_ms, actual_time_in_ms); | 4486 idle_time_in_ms, actual_time_in_ms); |
| 4487 action.Print(); | 4487 action.Print(); |
| 4488 PrintF("]\n"); | 4488 PrintF("]"); |
| 4489 if (FLAG_trace_idle_notification_verbose) { |
| 4490 PrintF("["); |
| 4491 heap_state.Print(); |
| 4492 PrintF("]"); |
| 4493 } |
| 4494 PrintF("\n"); |
| 4489 } | 4495 } |
| 4490 | 4496 |
| 4491 contexts_disposed_ = 0; | 4497 contexts_disposed_ = 0; |
| 4492 return result; | 4498 return result; |
| 4493 } | 4499 } |
| 4494 | 4500 |
| 4495 | 4501 |
| 4496 #ifdef DEBUG | 4502 #ifdef DEBUG |
| 4497 | 4503 |
| 4498 void Heap::Print() { | 4504 void Heap::Print() { |
| (...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6302 static_cast<int>(object_sizes_last_time_[index])); | 6308 static_cast<int>(object_sizes_last_time_[index])); |
| 6303 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6309 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 6304 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6310 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 6305 | 6311 |
| 6306 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6312 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 6307 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6313 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 6308 ClearObjectStats(); | 6314 ClearObjectStats(); |
| 6309 } | 6315 } |
| 6310 } | 6316 } |
| 6311 } // namespace v8::internal | 6317 } // namespace v8::internal |
| OLD | NEW |