aboutsummaryrefslogtreecommitdiff
path: root/stats
diff options
context:
space:
mode:
authorHenrik Boström <hbos@webrtc.org>2019-04-08 16:14:23 +0200
committerCommit Bot <commit-bot@chromium.org>2019-04-09 07:34:38 +0000
commitf71362f0cf066636f8e9a7f85c3725679e0efd4f (patch)
tree7e19e28f7e7e2dfd84594f1f64cf25a57f1658e7 /stats
parentea7b4c5c4089cc48db2556489478abcd2d09e879 (diff)
downloadwebrtc-f71362f0cf066636f8e9a7f85c3725679e0efd4f.tar.gz
Wire up RTCOutboundRtpStreamStats.totalEncodeTime.
This is a follow-up to https://webrtc-review.googlesource.com/c/src/+/130517 that calculated this metric. This CL is purely plumbing, exposing VideoSendStream::total_encode_time_ms in standard getStats() as RTCOutboundRtpStreamStats.totalEncodeTime (in seconds): https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-totalencodetime Bug: webrtc:10448 Change-Id: I715f1ef937e441169dee55b5e8d4fbf98811c5f3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/131940 Reviewed-by: Steve Anton <steveanton@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27501}
Diffstat (limited to 'stats')
-rw-r--r--stats/rtcstats_objects.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/stats/rtcstats_objects.cc b/stats/rtcstats_objects.cc
index 69b5e0af8b..de317aa4ee 100644
--- a/stats/rtcstats_objects.cc
+++ b/stats/rtcstats_objects.cc
@@ -644,7 +644,8 @@ WEBRTC_RTCSTATS_IMPL(
&packets_sent,
&bytes_sent,
&target_bitrate,
- &frames_encoded)
+ &frames_encoded,
+ &total_encode_time)
// clang-format on
RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(const std::string& id,
@@ -657,7 +658,8 @@ RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(std::string&& id,
packets_sent("packetsSent"),
bytes_sent("bytesSent"),
target_bitrate("targetBitrate"),
- frames_encoded("framesEncoded") {}
+ frames_encoded("framesEncoded"),
+ total_encode_time("totalEncodeTime") {}
RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
const RTCOutboundRTPStreamStats& other)
@@ -665,7 +667,8 @@ RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
packets_sent(other.packets_sent),
bytes_sent(other.bytes_sent),
target_bitrate(other.target_bitrate),
- frames_encoded(other.frames_encoded) {}
+ frames_encoded(other.frames_encoded),
+ total_encode_time(other.total_encode_time) {}
RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() {}