Reviewers: Hannes Payer,

Message:
PTAL.

Description:
Remove redundant check in GCTracer::SampleAllocation.

BUG=

Please review this at https://codereview.chromium.org/1213593004/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+0, -5 lines):
  M src/heap/gc-tracer.cc


Index: src/heap/gc-tracer.cc
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc
index 033c0bbc6774f2e780ee942ed0524627b04507fd..214bb8b24d67b031ebafbfe6a54e8c793e76d4ca 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;


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to