Add macros for ability to log samples that are added to histograms (RTC_LOGGED_*).
Adds logging of: - video stats that are recorded when a stream is removed - bitrate stats that are recorded at the end of a call - initial bwe rampup stats BUG= Review URL: https://codereview.webrtc.org/1788783002 Cr-Commit-Position: refs/heads/master@{#12133}
This commit is contained in:
@ -301,18 +301,18 @@ void VCMJitterBuffer::UpdateHistograms() {
|
||||
return;
|
||||
}
|
||||
|
||||
RTC_HISTOGRAM_PERCENTAGE("WebRTC.Video.DiscardedPacketsInPercent",
|
||||
num_discarded_packets_ * 100 / num_packets_);
|
||||
RTC_HISTOGRAM_PERCENTAGE("WebRTC.Video.DuplicatedPacketsInPercent",
|
||||
num_duplicated_packets_ * 100 / num_packets_);
|
||||
RTC_LOGGED_HISTOGRAM_PERCENTAGE("WebRTC.Video.DiscardedPacketsInPercent",
|
||||
num_discarded_packets_ * 100 / num_packets_);
|
||||
RTC_LOGGED_HISTOGRAM_PERCENTAGE("WebRTC.Video.DuplicatedPacketsInPercent",
|
||||
num_duplicated_packets_ * 100 / num_packets_);
|
||||
|
||||
int total_frames =
|
||||
receive_statistics_.key_frames + receive_statistics_.delta_frames;
|
||||
if (total_frames > 0) {
|
||||
RTC_HISTOGRAM_COUNTS_100(
|
||||
RTC_LOGGED_HISTOGRAM_COUNTS_100(
|
||||
"WebRTC.Video.CompleteFramesReceivedPerSecond",
|
||||
static_cast<int>((total_frames / elapsed_sec) + 0.5f));
|
||||
RTC_HISTOGRAM_COUNTS_1000(
|
||||
RTC_LOGGED_HISTOGRAM_COUNTS_1000(
|
||||
"WebRTC.Video.KeyFramesReceivedInPermille",
|
||||
static_cast<int>(
|
||||
(receive_statistics_.key_frames * 1000.0f / total_frames) + 0.5f));
|
||||
|
||||
Reference in New Issue
Block a user