From 65a1d7265a45b6496dd53572b534eaafeb984028 Mon Sep 17 00:00:00 2001 From: ulan Date: Thu, 2 Jul 2015 06:28:36 -0700 Subject: [PATCH] Remove redundant check in GCTracer::SampleAllocation. BUG= Review URL: https://codereview.chromium.org/1213593004 Cr-Commit-Position: refs/heads/master@{#29443} --- src/heap/gc-tracer.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc index 033c0bb..214bb8b 100644 --- a/src/heap/gc-tracer.cc +++ b/src/heap/gc-tracer.cc @@ -277,11 +277,6 @@ void GCTracer::SampleAllocation(double current_ms, size_t old_generation_allocated_bytes = old_generation_counter_bytes - old_generation_allocation_counter_bytes_; double duration = current_ms - allocation_time_ms_; - const double kMinDurationMs = 100; - if (duration < kMinDurationMs) { - // Do not sample small durations to avoid precision errors. - return; - } allocation_time_ms_ = current_ms; new_space_allocation_counter_bytes_ = new_space_counter_bytes; old_generation_allocation_counter_bytes_ = old_generation_counter_bytes; -- 2.7.4