Move SampleStatsCounter to public API
Bug: None Change-Id: I8956f6febbb1caf71e951d212d57746fe1ec5eb2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/184506 Commit-Queue: Artem Titov <titovartem@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32142}
This commit is contained in:
@ -40,7 +40,7 @@ class RollingAccumulator {
|
||||
size_t count() const { return static_cast<size_t>(stats_.Size()); }
|
||||
|
||||
void Reset() {
|
||||
stats_ = webrtc::RunningStatistics<T>();
|
||||
stats_ = webrtc::webrtc_impl::RunningStatistics<T>();
|
||||
next_index_ = 0U;
|
||||
max_ = T();
|
||||
max_stale_ = false;
|
||||
@ -129,7 +129,7 @@ class RollingAccumulator {
|
||||
double ComputeVariance() const { return stats_.GetVariance().value_or(0); }
|
||||
|
||||
private:
|
||||
webrtc::RunningStatistics<T> stats_;
|
||||
webrtc::webrtc_impl::RunningStatistics<T> stats_;
|
||||
size_t next_index_;
|
||||
mutable T max_;
|
||||
mutable bool max_stale_;
|
||||
|
Reference in New Issue
Block a user