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

Unified Diff: webrtc/video/send_statistics_proxy.h

Issue 2536613002: Use RateAccCounter for sent bitrate stats. Reports average of periodically computed stats over a ca… (Closed)
Patch Set: Created 4 years 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/send_statistics_proxy.cc » ('j') | webrtc/video/send_statistics_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/send_statistics_proxy.h
diff --git a/webrtc/video/send_statistics_proxy.h b/webrtc/video/send_statistics_proxy.h
index 934dab2f93e1f3af28d1f7f37084fcc1297b7760..90827f002783b2254177472808dd1e8b435bd8eb 100644
--- a/webrtc/video/send_statistics_proxy.h
+++ b/webrtc/video/send_statistics_proxy.h
@@ -167,6 +167,8 @@ class SendStatisticsProxy : public CpuOveruseMetricsObserver,
void UpdateHistograms(const VideoSendStream::Config::Rtp& rtp_config,
const VideoSendStream::Stats& current_stats);
+ void InitializeBitrateCounters(const VideoSendStream::Stats& stats);
+
const std::string uma_prefix_;
Clock* const clock_;
int max_sent_width_per_timestamp_;
@@ -187,6 +189,12 @@ class SendStatisticsProxy : public CpuOveruseMetricsObserver,
rtc::RateTracker input_frame_rate_tracker_;
RateCounter input_fps_counter_;
RateCounter sent_fps_counter_;
+ RateAccCounter total_byte_counter_;
+ RateAccCounter media_byte_counter_;
+ RateAccCounter rtx_byte_counter_;
+ RateAccCounter padding_byte_counter_;
+ RateAccCounter retransmit_byte_counter_;
+ RateAccCounter fec_byte_counter_;
int64_t first_rtcp_stats_time_ms_;
int64_t first_rtp_stats_time_ms_;
ReportBlockStats report_block_stats_;
« no previous file with comments | « no previous file | webrtc/video/send_statistics_proxy.cc » ('j') | webrtc/video/send_statistics_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698