Do not sample memory histograms in short idle notifications.
BUG=chromium:485472 LOG=NO TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/1128363003 Cr-Commit-Position: refs/heads/master@{#28297}
This commit is contained in:
parent
c93aff4ac6
commit
32c73eae60
@ -4647,14 +4647,17 @@ bool Heap::IdleNotification(double deadline_in_seconds) {
|
|||||||
|
|
||||||
GCIdleTimeAction action =
|
GCIdleTimeAction action =
|
||||||
gc_idle_time_handler_.Compute(idle_time_in_ms, heap_state);
|
gc_idle_time_handler_.Compute(idle_time_in_ms, heap_state);
|
||||||
|
|
||||||
isolate()->counters()->gc_idle_time_allotted_in_ms()->AddSample(
|
isolate()->counters()->gc_idle_time_allotted_in_ms()->AddSample(
|
||||||
static_cast<int>(idle_time_in_ms));
|
static_cast<int>(idle_time_in_ms));
|
||||||
int committed_memory = static_cast<int>(CommittedMemory() / KB);
|
if (is_long_idle_notification) {
|
||||||
int used_memory = static_cast<int>(heap_state.size_of_objects / KB);
|
int committed_memory = static_cast<int>(CommittedMemory() / KB);
|
||||||
isolate()->counters()->aggregated_memory_heap_committed()->AddSample(
|
int used_memory = static_cast<int>(heap_state.size_of_objects / KB);
|
||||||
start_ms, committed_memory);
|
isolate()->counters()->aggregated_memory_heap_committed()->AddSample(
|
||||||
isolate()->counters()->aggregated_memory_heap_used()->AddSample(start_ms,
|
start_ms, committed_memory);
|
||||||
used_memory);
|
isolate()->counters()->aggregated_memory_heap_used()->AddSample(
|
||||||
|
start_ms, used_memory);
|
||||||
|
}
|
||||||
|
|
||||||
bool result = false;
|
bool result = false;
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user