| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 1ad08104f1346a27ea48e9345ec22776a0b0ee8b..c145a635d65d2a9213d95ff78803576f23bd76e6 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -4644,14 +4644,17 @@ bool Heap::IdleNotification(double deadline_in_seconds) {
|
|
|
| GCIdleTimeAction action =
|
| gc_idle_time_handler_.Compute(idle_time_in_ms, heap_state);
|
| +
|
| isolate()->counters()->gc_idle_time_allotted_in_ms()->AddSample(
|
| static_cast<int>(idle_time_in_ms));
|
| - 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);
|
| + 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);
|
| + }
|
|
|
| bool result = false;
|
| switch (action.type) {
|
|
|