Report sent_packets_queue_wait_time_us in PC level framework network debug mode

Bug: webrtc:11959
Change-Id: I9533a0daf7391d9b6a524e1d1ab6ad783f9aafa3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185962
Reviewed-by: Andrey Logvin <landrey@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32234}
This commit is contained in:
Artem Titov 2020-09-29 15:10:46 +02:00 committed by Commit Bot
parent 0b9e354d61
commit 8036cb791f

View File

@ -295,6 +295,10 @@ void StatsBasedNetworkQualityMetricsReporter::LogNetworkLayerStats(
ReportResult("dropped_packets_size", peer_name,
stats.stats->DroppedPacketsSizeCounter(), "sizeInBytes");
}
if (!stats.stats->SentPacketsQueueWaitTimeUs().IsEmpty()) {
ReportResult("sent_packets_queue_wait_time_us", peer_name,
stats.stats->SentPacketsQueueWaitTimeUs(), "unitless");
}
log << "Send statistic:\n"
<< " packets: " << stats.stats->PacketsSent()