Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: webrtc/video/stats_counter.h

Issue 2388043003: Make process interval configurable for MaxCounter class. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/video/stats_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/stats_counter.h
diff --git a/webrtc/video/stats_counter.h b/webrtc/video/stats_counter.h
index 603bbdaca0efdff54e38d79331d63c9c887e189d..c6e6151933ea53fe88afb085c4fd0c158888ed46 100644
--- a/webrtc/video/stats_counter.h
+++ b/webrtc/video/stats_counter.h
@@ -99,6 +99,7 @@ class StatsCounter {
protected:
StatsCounter(Clock* clock,
+ int64_t process_intervals_ms,
bool include_empty_intervals,
StatsCounterObserver* observer);
@@ -111,6 +112,7 @@ class StatsCounter {
int64_t last_sum_;
const std::unique_ptr<AggregatedCounter> aggregated_counter_;
+ const int64_t process_intervals_ms_;
private:
bool TimeToProcess(int* num_elapsed_intervals);
@@ -161,7 +163,9 @@ class AvgCounter : public StatsCounter {
//
class MaxCounter : public StatsCounter {
public:
- MaxCounter(Clock* clock, StatsCounterObserver* observer);
+ MaxCounter(Clock* clock,
+ StatsCounterObserver* observer,
+ int64_t process_intervals_ms);
~MaxCounter() override {}
void Add(int sample);
« no previous file with comments | « no previous file | webrtc/video/stats_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698