Lines Matching refs:current_ms
394 void AddSample(double current_ms, double current_value);
406 double Aggregate(double current_ms, double current_value);
417 void AggregatedMemoryHistogram<Histogram>::AddSample(double current_ms,
421 start_ms_ = current_ms;
423 last_ms_ = current_ms;
428 if (current_ms < last_ms_ + kEpsilon) {
434 if (end_ms <= current_ms + kEpsilon) {
435 // Linearly interpolate between the last_ms_ and the current_ms.
436 double slope = (current_value - last_value_) / (current_ms - last_ms_);
439 // to the current_ms.
440 for (i = 0; i < kMaxSamples && end_ms <= current_ms + kEpsilon; i++) {
458 start_ms_ = current_ms;
464 aggregate_value_ = current_ms > start_ms_ + kEpsilon
465 ? Aggregate(current_ms, current_value)
468 last_ms_ = current_ms;
474 double AggregatedMemoryHistogram<Histogram>::Aggregate(double current_ms,
476 double interval_ms = current_ms - start_ms_;
479 // The value is the average for [last_ms_; current_ms].
482 value * ((current_ms - last_ms_) / interval_ms);