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

Unified Diff: webrtc/modules/audio_processing/test/performance_timer.h

Issue 2750413002: Improve stability of the echo detector complexity perf tests. (Closed)
Patch Set: Changed int to size_t. Created 3 years, 9 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
Index: webrtc/modules/audio_processing/test/performance_timer.h
diff --git a/webrtc/modules/audio_processing/test/performance_timer.h b/webrtc/modules/audio_processing/test/performance_timer.h
index 5921fae07011a16aa8d0a83be8ed92fbb78a4c76..92cda8bd5de4577bbc9de88030f4d112ae466a78 100644
--- a/webrtc/modules/audio_processing/test/performance_timer.h
+++ b/webrtc/modules/audio_processing/test/performance_timer.h
@@ -30,6 +30,11 @@ class PerformanceTimer {
double GetDurationAverage() const;
double GetDurationStandardDeviation() const;
+ // These methods are the same as those above, but they ignore the first
+ // |number_of_warmup_samples| measurements.
+ double GetDurationAverage(size_t number_of_warmup_samples) const;
+ double GetDurationStandardDeviation(size_t number_of_warmup_samples) const;
+
private:
webrtc::Clock* clock_;
rtc::Optional<int64_t> start_timestamp_us_;

Powered by Google App Engine
This is Rietveld 408576698