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

Unified Diff: webrtc/video/call_stats.h

Issue 1669623004: Use CallStats for RTT in Call, rather than VideoSendStream::GetRtt() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comment, rebase Created 4 years, 10 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 | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc ('k') | webrtc/video/call_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/call_stats.h
diff --git a/webrtc/video/call_stats.h b/webrtc/video/call_stats.h
index 8a09b7eed73d5c41318098316d7f43f1091e4c6b..385f6ffbe0c81c921a669b3de60f4eaa3f2bd6e7 100644
--- a/webrtc/video/call_stats.h
+++ b/webrtc/video/call_stats.h
@@ -58,6 +58,8 @@ class CallStats : public Module {
int64_t avg_rtt_ms() const;
private:
+ void UpdateHistograms();
+
Clock* const clock_;
// Protecting all members.
rtc::CriticalSection crit_;
@@ -68,6 +70,9 @@ class CallStats : public Module {
// The last RTT in the statistics update (zero if there is no valid estimate).
int64_t max_rtt_ms_;
int64_t avg_rtt_ms_;
+ int64_t sum_avg_rtt_ms_ GUARDED_BY(crit_);
+ int64_t num_avg_rtt_ GUARDED_BY(crit_);
+ int64_t time_of_first_rtt_ms_ GUARDED_BY(crit_);
// All Rtt reports within valid time interval, oldest first.
std::list<RttTime> reports_;
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc ('k') | webrtc/video/call_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698