Add ToString method to AggregatedStats and log stats at the end of a call.

BUG=webrtc:5283

Review-Url: https://codereview.webrtc.org/2494423002
Cr-Commit-Position: refs/heads/master@{#15088}
This commit is contained in:
asapersson
2016-11-15 08:20:48 -08:00
committed by Commit bot
parent 841de6a47e
commit 43cb716e55
5 changed files with 27 additions and 0 deletions

View File

@ -45,6 +45,7 @@ void SendDelayStats::UpdateHistograms() {
AggregatedStats stats = it.second->GetStats();
if (stats.num_samples >= kMinRequiredPeriodicSamples) {
RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.SendDelayInMs", stats.average);
LOG(LS_INFO) << "WebRTC.Video.SendDelayInMs, " << stats.ToString();
}
}
}