Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Issue 1478253002: Add histogram stats for send delay for a sent video stream. (Closed)

Created:
5 years ago by åsapersson
Modified:
4 years, 7 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, video-team_agora.io, yujie_mao (webrtc), zhuangzesen_agora.io, Andrew MacDonald, zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, andresp, peah-webrtc, the sun, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add histogram stats for average send delay of sent packets for a sent video stream. The delay is measured from a packet is sent to the transport until leaving the socket. - "WebRTC.Video.SendDelayInMs" Change so that PacketOption packet id is always set in RtpSender (if having a TransportSequenceNumberAllocator). Add SendDelayStats class for computing delays. Add SendPacketObserver to RtpRtcp config and register SendDelayStats as observer. Wire up OnSentPacket to SendDelayStats. BUG=webrtc:5215 Committed: https://crrev.com/35151f35ecb52a3a06825a946d8ee9f21bf7bc3e Cr-Commit-Position: refs/heads/master@{#12600}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : rebase #

Total comments: 23

Patch Set 8 : #

Total comments: 14

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 6

Patch Set 14 : rebase #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Total comments: 5

Patch Set 18 : moved send delay calculations to separate class #

Patch Set 19 : rebase #

Patch Set 20 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+558 lines, -121 lines) Patch
M webrtc/call/call.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +10 lines, -3 lines 0 comments Download
M webrtc/call/rtc_event_log_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/common_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +12 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/include/rtp_rtcp.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +14 lines, -7 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +53 lines, -41 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 10 chunks +105 lines, -25 lines 0 comments Download
M webrtc/video/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/rtp_stream_receiver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
A webrtc/video/send_delay_stats.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +93 lines, -0 lines 0 comments Download
A webrtc/video/send_delay_stats.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +118 lines, -0 lines 0 comments Download
A webrtc/video/send_delay_stats_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +122 lines, -0 lines 0 comments Download
M webrtc/video/send_statistics_proxy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 10 chunks +10 lines, -40 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +4 lines, -0 lines 0 comments Download
M webrtc/video/webrtc_video.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/webrtc_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 54 (31 generated)
åsapersson
5 years ago (2015-12-02 12:18:05 UTC) #10
pbos-webrtc
https://codereview.webrtc.org/1478253002/diff/180001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1478253002/diff/180001/webrtc/video/send_statistics_proxy.cc#newcode390 webrtc/video/send_statistics_proxy.cc:390: packets_.erase(it); This means that we can't update packets' send ...
5 years ago (2015-12-07 06:05:52 UTC) #12
pbos-webrtc
https://codereview.webrtc.org/1478253002/diff/180001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1478253002/diff/180001/webrtc/call/call.cc#newcode573 webrtc/call/call.cc:573: for (VideoSendStream* stream : video_send_streams_) { Can you somehow ...
5 years ago (2015-12-07 06:06:52 UTC) #13
pbos-webrtc
On 2015/12/07 06:06:52, pbos-webrtc wrote: > https://codereview.webrtc.org/1478253002/diff/180001/webrtc/call/call.cc > File webrtc/call/call.cc (right): > > https://codereview.webrtc.org/1478253002/diff/180001/webrtc/call/call.cc#newcode573 > ...
5 years ago (2015-12-07 06:07:25 UTC) #14
åsapersson
https://codereview.webrtc.org/1478253002/diff/180001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1478253002/diff/180001/webrtc/call/call.cc#newcode573 webrtc/call/call.cc:573: for (VideoSendStream* stream : video_send_streams_) { On 2015/12/07 06:06:52, ...
5 years ago (2015-12-08 12:50:15 UTC) #16
stefan-webrtc
https://codereview.webrtc.org/1478253002/diff/240001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1478253002/diff/240001/webrtc/call/call.cc#newcode574 webrtc/call/call.cc:574: stream->OnSentPacket(sent_packet.packet_id); Should this method return if the packet belonged ...
5 years ago (2015-12-10 08:37:50 UTC) #17
åsapersson
https://codereview.webrtc.org/1478253002/diff/240001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/1478253002/diff/240001/webrtc/call/call.cc#newcode574 webrtc/call/call.cc:574: stream->OnSentPacket(sent_packet.packet_id); On 2015/12/10 08:37:49, stefan-webrtc (holmer) wrote: > Should ...
5 years ago (2015-12-15 14:28:27 UTC) #19
stefan-webrtc
https://codereview.webrtc.org/1478253002/diff/240001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/1478253002/diff/240001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode1142 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:1142: send_packet_observer_->OnSendPacket(*packet_id, capture_time_ms, ssrc); On 2015/12/15 14:28:26, åsapersson wrote: > ...
4 years, 11 months ago (2016-01-18 19:48:26 UTC) #20
stefan-webrtc
Any progress on this?
4 years, 8 months ago (2016-03-30 11:14:34 UTC) #21
åsapersson
https://codereview.webrtc.org/1478253002/diff/240001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1478253002/diff/240001/webrtc/video/send_statistics_proxy.cc#newcode440 webrtc/video/send_statistics_proxy.cc:440: } On 2016/01/18 19:48:25, stefan-webrtc (holmer) wrote: > On ...
4 years, 8 months ago (2016-04-06 14:52:37 UTC) #25
stefan-webrtc
lg, but you probably have to rebase https://codereview.webrtc.org/1478253002/diff/500001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/1478253002/diff/500001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode681 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:681: AllocateTransportSequenceNumber(&options.packet_id)) { ...
4 years, 8 months ago (2016-04-19 11:06:15 UTC) #29
åsapersson
https://codereview.webrtc.org/1478253002/diff/500001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/1478253002/diff/500001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode681 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:681: AllocateTransportSequenceNumber(&options.packet_id)) { On 2016/04/19 11:06:15, stefan-webrtc (holmer) wrote: > ...
4 years, 8 months ago (2016-04-19 14:55:33 UTC) #31
stefan-webrtc
lgtm https://codereview.webrtc.org/1478253002/diff/500001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/1478253002/diff/500001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode681 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:681: AllocateTransportSequenceNumber(&options.packet_id)) { On 2016/04/19 14:55:32, åsapersson wrote: > ...
4 years, 8 months ago (2016-04-20 10:59:55 UTC) #35
åsapersson
https://codereview.webrtc.org/1478253002/diff/500001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/1478253002/diff/500001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode681 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:681: AllocateTransportSequenceNumber(&options.packet_id)) { On 2016/04/20 10:59:54, stefan-webrtc (holmer) wrote: > ...
4 years, 8 months ago (2016-04-20 11:16:56 UTC) #36
åsapersson
Magnus, can you have a look at webrtc/common_types.h
4 years, 8 months ago (2016-04-20 11:27:43 UTC) #37
mflodman
Sorry for the late review, two comments. https://codereview.webrtc.org/1478253002/diff/580001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1478253002/diff/580001/webrtc/video/send_statistics_proxy.cc#newcode640 webrtc/video/send_statistics_proxy.cc:640: int diff_ms ...
4 years, 8 months ago (2016-04-26 06:49:11 UTC) #38
åsapersson
I have moved the delay computations to a separate class to avoid taking the video ...
4 years, 7 months ago (2016-04-28 12:26:19 UTC) #44
mflodman
lgtm https://codereview.webrtc.org/1478253002/diff/580001/webrtc/video/video_send_stream.h File webrtc/video/video_send_stream.h (right): https://codereview.webrtc.org/1478253002/diff/580001/webrtc/video/video_send_stream.h#newcode79 webrtc/video/video_send_stream.h:79: bool OnSentPacket(int packet_id); On 2016/04/28 12:26:19, åsapersson wrote: ...
4 years, 7 months ago (2016-05-02 07:21:10 UTC) #45
stefan-webrtc
lgtm
4 years, 7 months ago (2016-05-02 10:29:46 UTC) #46
pbos-webrtc
Haven't had time to look through this, I think you can submit it without my ...
4 years, 7 months ago (2016-05-02 21:42:02 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1478253002/700001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1478253002/700001
4 years, 7 months ago (2016-05-03 06:37:45 UTC) #50
commit-bot: I haz the power
Committed patchset #20 (id:700001)
4 years, 7 months ago (2016-05-03 06:44:07 UTC) #52
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 06:44:19 UTC) #54
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/35151f35ecb52a3a06825a946d8ee9f21bf7bc3e
Cr-Commit-Position: refs/heads/master@{#12600}

Powered by Google App Engine
This is Rietveld 408576698