Chromium Code Reviews| Index: src/heap/heap.cc |
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
| index 38968ad0b33b026b2a6087a908044a9026d8c009..a7c963fa190b5fe63caba9311a52806fbae5aa97 100644 |
| --- a/src/heap/heap.cc |
| +++ b/src/heap/heap.cc |
| @@ -4756,8 +4756,7 @@ bool Heap::PerformIdleTimeAction(GCIdleTimeAction action, |
| void Heap::IdleNotificationEpilogue(GCIdleTimeAction action, |
| GCIdleTimeHandler::HeapState heap_state, |
| - double start_ms, double deadline_in_ms, |
| - bool is_long_idle_notification) { |
| + double start_ms, double deadline_in_ms) { |
| double idle_time_in_ms = deadline_in_ms - start_ms; |
| double current_time = MonotonicallyIncreasingTimeInMs(); |
| last_idle_notification_time_ = current_time; |
| @@ -4768,15 +4767,6 @@ void Heap::IdleNotificationEpilogue(GCIdleTimeAction action, |
| isolate()->counters()->gc_idle_time_allotted_in_ms()->AddSample( |
| static_cast<int>(idle_time_in_ms)); |
| - if (is_long_idle_notification) { |
| - int committed_memory = static_cast<int>(CommittedMemory() / KB); |
| - int used_memory = static_cast<int>(heap_state.size_of_objects / KB); |
| - isolate()->counters()->aggregated_memory_heap_committed()->AddSample( |
| - start_ms, committed_memory); |
| - isolate()->counters()->aggregated_memory_heap_used()->AddSample( |
| - start_ms, used_memory); |
|
ulan
2015/06/03 10:53:25
We already sample this after each scavenge. That s
|
| - } |
| - |
| if (deadline_difference >= 0) { |
| if (action.type != DONE && action.type != DO_NOTHING) { |
| isolate()->counters()->gc_idle_time_limit_undershot()->AddSample( |
| @@ -4830,14 +4820,9 @@ bool Heap::IdleNotification(double deadline_in_seconds) { |
| isolate_->counters()->gc_idle_notification()); |
| double start_ms = MonotonicallyIncreasingTimeInMs(); |
| double idle_time_in_ms = deadline_in_ms - start_ms; |
| - bool is_long_idle_notification = |
| - static_cast<size_t>(idle_time_in_ms) > |
| - GCIdleTimeHandler::kMaxFrameRenderingIdleTime; |
| - if (is_long_idle_notification) { |
| - tracer()->SampleAllocation(start_ms, NewSpaceAllocationCounter(), |
| - OldGenerationAllocationCounter()); |
| - } |
| + tracer()->SampleAllocation(start_ms, NewSpaceAllocationCounter(), |
|
ulan
2015/06/03 10:53:25
Added a guard in SampleAllocation to not sample to
|
| + OldGenerationAllocationCounter()); |
| GCIdleTimeHandler::HeapState heap_state = ComputeHeapState(); |
| @@ -4847,8 +4832,7 @@ bool Heap::IdleNotification(double deadline_in_seconds) { |
| bool result = PerformIdleTimeAction(action, heap_state, deadline_in_ms, |
| is_long_idle_notification); |
| - IdleNotificationEpilogue(action, heap_state, start_ms, deadline_in_ms, |
| - is_long_idle_notification); |
| + IdleNotificationEpilogue(action, heap_state, start_ms, deadline_in_ms); |
| return result; |
| } |