Add receive bitrates to histogram stats:
- total bitrate ("WebRTC.Video.BitrateReceivedInKbps")
- media bitrate ("WebRTC.Video.MediaBitrateReceivedInKbps")
- rtx bitrate ("WebRTC.Video.RtxBitrateReceivedInKbps")
- padding bitrate ("WebRTC.Video.PaddingBitrateReceivedInKbps")
BUG=crbug/419657
R=mflodman@webrtc.org, stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/27189005
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7756 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -63,6 +63,7 @@ void StreamStatisticianImpl::ResetStatistics() {
|
||||
received_seq_wraps_ = 0;
|
||||
received_seq_max_ = 0;
|
||||
received_seq_first_ = 0;
|
||||
stored_sum_receive_counters_.Add(receive_counters_);
|
||||
receive_counters_ = StreamDataCounters();
|
||||
}
|
||||
|
||||
@ -314,6 +315,13 @@ void StreamStatisticianImpl::GetDataCounters(
|
||||
}
|
||||
}
|
||||
|
||||
void StreamStatisticianImpl::GetReceiveStreamDataCounters(
|
||||
StreamDataCounters* data_counters) const {
|
||||
CriticalSectionScoped cs(stream_lock_.get());
|
||||
*data_counters = receive_counters_;
|
||||
data_counters->Add(stored_sum_receive_counters_);
|
||||
}
|
||||
|
||||
uint32_t StreamStatisticianImpl::BitrateReceived() const {
|
||||
CriticalSectionScoped cs(stream_lock_.get());
|
||||
return incoming_bitrate_.BitrateNow();
|
||||
|
||||
Reference in New Issue
Block a user