Index: webrtc/video/receive_statistics_proxy.cc |
diff --git a/webrtc/video/receive_statistics_proxy.cc b/webrtc/video/receive_statistics_proxy.cc |
index 57d1f569cfd9168783cad153ec8a4df9aa7f2398..90575436a24b7424869e534c85ca13700e201cde 100644 |
--- a/webrtc/video/receive_statistics_proxy.cc |
+++ b/webrtc/video/receive_statistics_proxy.cc |
@@ -24,6 +24,7 @@ ReceiveStatisticsProxy::ReceiveStatisticsProxy( |
Clock* clock) |
: clock_(clock), |
config_(*config), |
+ start_ms_(clock->TimeInMilliseconds()), |
// 1000ms window, scale 1000 for ms to s. |
decode_fps_estimator_(1000, 1000), |
renders_fps_estimator_(1000, 1000), |
@@ -39,6 +40,10 @@ ReceiveStatisticsProxy::~ReceiveStatisticsProxy() { |
} |
void ReceiveStatisticsProxy::UpdateHistograms() { |
+ RTC_LOGGED_HISTOGRAM_COUNTS_100000( |
+ "WebRTC.Video.ReceiveStreamLifetimeInSeconds", |
+ (clock_->TimeInMilliseconds() - start_ms_) / 1000); |
+ |
int fraction_lost = report_block_stats_.FractionLostInPercent(); |
if (fraction_lost != -1) { |
RTC_LOGGED_HISTOGRAM_PERCENTAGE("WebRTC.Video.ReceivedPacketsLostInPercent", |