| Index: src/counters.h
|
| diff --git a/src/counters.h b/src/counters.h
|
| index 8cfe6c525cf7cb786fa8c7efb37dac4706b869a3..a633fea7798fa00e64d5d4fb939c22a186bf40e5 100644
|
| --- a/src/counters.h
|
| +++ b/src/counters.h
|
| @@ -245,7 +245,9 @@ class HistogramTimer : public Histogram {
|
| int max,
|
| int num_buckets,
|
| Isolate* isolate)
|
| - : Histogram(name, min, max, num_buckets, isolate) {}
|
| + : Histogram(name, min, max, num_buckets, isolate),
|
| + start_time_(0),
|
| + stop_time_(0) { }
|
|
|
| // Start the timer.
|
| void Start();
|
| @@ -255,11 +257,12 @@ class HistogramTimer : public Histogram {
|
|
|
| // Returns true if the timer is running.
|
| bool Running() {
|
| - return Enabled() && timer_.IsStarted();
|
| + return Enabled() && (start_time_ != 0) && (stop_time_ == 0);
|
| }
|
|
|
| private:
|
| - ElapsedTimer timer_;
|
| + int64_t start_time_;
|
| + int64_t stop_time_;
|
| };
|
|
|
| // Helper class for scoping a HistogramTimer.
|
|
|