Reviewers: ulan,

Description:
Use current time to calculate context disposal rate.

BUG=

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

Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+1, -1 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 9d4a991c4121f2f9a33e8b62810546216c30d301..6d7231e9eda6ffb949bc6c389961c736ba0e0461 100644
--- a/src/heap/gc-tracer.cc
+++ b/src/heap/gc-tracer.cc
@@ -492,7 +492,7 @@ intptr_t GCTracer::NewSpaceAllocationThroughputInBytesPerMillisecond() const {
 double GCTracer::ContextDisposalRateInMilliseconds() const {
   if (context_disposal_events_.size() == 0) return 0.0;

-  double begin = context_disposal_events_.begin()->time_;
+  double begin = base::OS::TimeCurrentMillis();
   double end = 0.0;
   ContextDisposalEventBuffer::const_iterator iter =
       context_disposal_events_.begin();


--
--
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