Index: webrtc/video/send_statistics_proxy.cc |
diff --git a/webrtc/video/send_statistics_proxy.cc b/webrtc/video/send_statistics_proxy.cc |
index d8c11a8c3588ee061bfcca9189fe531709f6f066..18d9c22b503d9906a73a67c11f452195b4e66236 100644 |
--- a/webrtc/video/send_statistics_proxy.cc |
+++ b/webrtc/video/send_statistics_proxy.cc |
@@ -513,6 +513,11 @@ void SendStatisticsProxy::OnSendEncodedImage( |
static_cast<int>(encoded_image._encodedHeight)); |
} |
+float SendStatisticsProxy::GetSendFrameRate() { |
+ rtc::CritScope lock(&crit_); |
+ return uma_container_->sent_frame_rate_tracker_.ComputeRateForInterval(1000); |
stefan-webrtc
2016/06/02 07:42:37
It seems a bit weird to me that we're getting the
perkj_webrtc
2016/06/02 10:16:20
sure- would it be nice if pc.GetStats, uma and int
åsapersson
2016/06/02 11:11:40
Maybe it is better to return stats_.encode_frame_r
perkj_webrtc
2016/06/02 11:33:20
Done.
|
+} |
+ |
void SendStatisticsProxy::OnIncomingFrame(int width, int height) { |
rtc::CritScope lock(&crit_); |
uma_container_->input_frame_rate_tracker_.AddSamples(1); |