Index: webrtc/modules/audio_processing/audio_processing_impl.cc |
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc |
index 805e05eeee8d71643ca5d72b10df251b39a11e66..a36c93d5d32bec7fa4f5df15b99472dcff651688 100644 |
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc |
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc |
@@ -1322,8 +1322,9 @@ void AudioProcessingImpl::MaybeUpdateHistograms() { |
capture_nonlocked_.stream_delay_ms - capture_.last_stream_delay_ms; |
if (diff_stream_delay_ms > kMinDiffDelayMs && |
capture_.last_stream_delay_ms != 0) { |
- RTC_HISTOGRAM_COUNTS("WebRTC.Audio.PlatformReportedStreamDelayJump", |
- diff_stream_delay_ms, kMinDiffDelayMs, 1000, 100); |
+ RTC_HISTOGRAM_COUNTS_SPARSE( |
+ "WebRTC.Audio.PlatformReportedStreamDelayJump", diff_stream_delay_ms, |
+ kMinDiffDelayMs, 1000, 100); |
if (capture_.stream_delay_jumps == -1) { |
capture_.stream_delay_jumps = 0; // Activate counter if needed. |
} |
@@ -1340,9 +1341,9 @@ void AudioProcessingImpl::MaybeUpdateHistograms() { |
aec_system_delay_ms - capture_.last_aec_system_delay_ms; |
if (diff_aec_system_delay_ms > kMinDiffDelayMs && |
capture_.last_aec_system_delay_ms != 0) { |
- RTC_HISTOGRAM_COUNTS("WebRTC.Audio.AecSystemDelayJump", |
- diff_aec_system_delay_ms, kMinDiffDelayMs, 1000, |
- 100); |
+ RTC_HISTOGRAM_COUNTS_SPARSE("WebRTC.Audio.AecSystemDelayJump", |
+ diff_aec_system_delay_ms, kMinDiffDelayMs, |
+ 1000, 100); |
if (capture_.aec_system_delay_jumps == -1) { |
capture_.aec_system_delay_jumps = 0; // Activate counter if needed. |
} |
@@ -1358,7 +1359,7 @@ void AudioProcessingImpl::UpdateHistogramsOnCallEnd() { |
rtc::CritScope cs_capture(&crit_capture_); |
if (capture_.stream_delay_jumps > -1) { |
- RTC_HISTOGRAM_ENUMERATION( |
+ RTC_HISTOGRAM_ENUMERATION_SPARSE( |
"WebRTC.Audio.NumOfPlatformReportedStreamDelayJumps", |
capture_.stream_delay_jumps, 51); |
} |
@@ -1366,8 +1367,8 @@ void AudioProcessingImpl::UpdateHistogramsOnCallEnd() { |
capture_.last_stream_delay_ms = 0; |
if (capture_.aec_system_delay_jumps > -1) { |
- RTC_HISTOGRAM_ENUMERATION("WebRTC.Audio.NumOfAecSystemDelayJumps", |
- capture_.aec_system_delay_jumps, 51); |
+ RTC_HISTOGRAM_ENUMERATION_SPARSE("WebRTC.Audio.NumOfAecSystemDelayJumps", |
+ capture_.aec_system_delay_jumps, 51); |
} |
capture_.aec_system_delay_jumps = -1; |
capture_.last_aec_system_delay_ms = 0; |