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

Issue 1765443002: Added log messages for important call setup events: first packet sent/received (Closed)

Created:
4 years, 9 months ago by skvlad
Modified:
4 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, danilchap, zhuangzesen_agora.io, zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added log messages for some important call setup events: - First audio RTP packet sent / received - First RTP packet of the first video frame sent / received - Last RTP packet of the first video frame sent / received These timestamps should make it easier to measure how fast the call becomes established from the user's perspective. Committed: https://crrev.com/98bb6640d22e9fe03696054b5e054f174db7739f Cr-Commit-Position: refs/heads/master@{#12287}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Rephrased the log lines to begin with "sent"/"received" #

Total comments: 4

Patch Set 3 : Moved first packet logging from rtp_receiver_impl.cc to rtp_receiver_audio/video.cc #

Total comments: 6

Patch Set 4 : Fixed the inverted condition (if (!_firstPacketSent)) #

Patch Set 5 : Replaced ad-hoc boolean flags with the new class OneTimeEvent #

Total comments: 9

Patch Set 6 : Added the non-thread-safe version of OneTimeEvent. #

Total comments: 4

Patch Set 7 : Code review feedback; added unit tests for OneTimeEvent #

Total comments: 1

Patch Set 8 : Removed a file that was added accidentally #

Total comments: 6

Patch Set 9 : Corrected naming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -4 lines) Patch
M webrtc/base/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/base.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/base_tests.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A webrtc/base/onetimeevent.h View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
A webrtc/base/onetimeevent_unittest.cc View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_video.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -4 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_video.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc View 1 2 3 4 4 chunks +15 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/jitter_buffer.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/video_receiver.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (8 generated)
skvlad
4 years, 9 months ago (2016-03-03 00:59:49 UTC) #2
pthatcher1
lgtm, Just little nits I'm not an owner, though :) https://codereview.webrtc.org/1765443002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/1765443002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode232 ...
4 years, 9 months ago (2016-03-05 01:17:05 UTC) #3
danilchap
https://codereview.webrtc.org/1765443002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc (right): https://codereview.webrtc.org/1765443002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc#newcode368 webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc:368: int32_t sendResult = _rtpSender->SendToNetwork(dataBuffer, payloadSize, SendToNetwork doesn't send packet ...
4 years, 9 months ago (2016-03-07 09:29:11 UTC) #4
pthatcher1
https://codereview.webrtc.org/1765443002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc (right): https://codereview.webrtc.org/1765443002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc#newcode368 webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc:368: int32_t sendResult = _rtpSender->SendToNetwork(dataBuffer, payloadSize, On 2016/03/07 09:29:11, danilchap ...
4 years, 9 months ago (2016-03-07 17:28:33 UTC) #5
skvlad
Rephrased the log statements to begin with "Sent"/"Received" https://codereview.webrtc.org/1765443002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/1765443002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode232 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:232: (is_audio_ ...
4 years, 9 months ago (2016-03-07 19:36:53 UTC) #6
skvlad
Please take a look when you have time. This is just a logging change, it ...
4 years, 9 months ago (2016-03-08 23:57:35 UTC) #7
mflodman
Sorry for the late review, I missed this coming back from my vacation. https://codereview.webrtc.org/1765443002/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File ...
4 years, 9 months ago (2016-03-15 11:05:46 UTC) #8
pthatcher1
https://codereview.webrtc.org/1765443002/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/1765443002/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode230 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:230: if (is_first_packet_in_first_frame) { On 2016/03/15 11:05:45, mflodman wrote: > ...
4 years, 9 months ago (2016-03-15 16:44:30 UTC) #9
skvlad
Moved logging of the first received packet from RtpReceiverImpl to RtpReceiver[Audio|Video] per mflodman's suggestion. https://codereview.webrtc.org/1765443002/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc ...
4 years, 9 months ago (2016-03-16 02:05:56 UTC) #10
pthatcher1
https://codereview.webrtc.org/1765443002/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h File webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h (right): https://codereview.webrtc.org/1765443002/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h#newcode59 webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h:59: bool first_packet_received_ = false; Strange indentation https://codereview.webrtc.org/1765443002/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc ...
4 years, 9 months ago (2016-03-16 04:55:27 UTC) #11
mflodman
https://codereview.webrtc.org/1765443002/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/1765443002/diff/20001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode230 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:230: if (is_first_packet_in_first_frame) { On 2016/03/15 16:44:30, pthatcher1 wrote: > ...
4 years, 9 months ago (2016-03-16 14:30:54 UTC) #12
pbos-webrtc
Is this something that we need submitted? I'm thinking better points to log are when ...
4 years, 9 months ago (2016-03-16 14:36:15 UTC) #14
pthatcher1
On 2016/03/16 14:36:15, pbos-webrtc wrote: > Is this something that we need submitted? Yes, this ...
4 years, 9 months ago (2016-03-16 15:06:56 UTC) #15
skvlad
Fixed the inverted if condition (if (!_firstPacketSent)) https://codereview.webrtc.org/1765443002/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h File webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h (right): https://codereview.webrtc.org/1765443002/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h#newcode59 webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h:59: bool first_packet_received_ ...
4 years, 9 months ago (2016-03-16 19:07:04 UTC) #16
pthatcher1
lgtm https://codereview.webrtc.org/1765443002/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h File webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h (right): https://codereview.webrtc.org/1765443002/diff/40001/webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h#newcode59 webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h:59: bool first_packet_received_ = false; On 2016/03/16 19:07:04, skvlad ...
4 years, 9 months ago (2016-03-16 19:17:26 UTC) #17
skvlad
I've introduced a small helper class (webrtc::OneTimeEvent) to simplify the logic of logging something the ...
4 years, 9 months ago (2016-03-24 00:47:10 UTC) #18
skvlad
Added kjellander@ to take a look at the .gn file.
4 years, 9 months ago (2016-03-24 00:48:51 UTC) #20
pthatcher1
I like the use of OneTimeEvent. https://codereview.webrtc.org/1765443002/diff/80001/webrtc/base/onetimeevent.h File webrtc/base/onetimeevent.h (right): https://codereview.webrtc.org/1765443002/diff/80001/webrtc/base/onetimeevent.h#newcode32 webrtc/base/onetimeevent.h:32: rtc::CritScope cs(&critsect_); Would ...
4 years, 9 months ago (2016-03-25 22:35:23 UTC) #21
skvlad
I've added the non-thread-safe version of OneTimeEvent. Please take a look. https://codereview.webrtc.org/1765443002/diff/80001/webrtc/base/onetimeevent.h File webrtc/base/onetimeevent.h (right): ...
4 years, 9 months ago (2016-03-26 02:00:08 UTC) #22
pthatcher1
lgtm https://codereview.webrtc.org/1765443002/diff/100001/webrtc/base/onetimeevent.h File webrtc/base/onetimeevent.h (right): https://codereview.webrtc.org/1765443002/diff/100001/webrtc/base/onetimeevent.h#newcode37 webrtc/base/onetimeevent.h:37: } Is it worth writing a small unit ...
4 years, 8 months ago (2016-03-28 16:33:48 UTC) #23
kjellander_webrtc
https://codereview.webrtc.org/1765443002/diff/100001/webrtc/base/BUILD.gn File webrtc/base/BUILD.gn (right): https://codereview.webrtc.org/1765443002/diff/100001/webrtc/base/BUILD.gn#newcode273 webrtc/base/BUILD.gn:273: "onetimeevent.h", The source files that use this header belong ...
4 years, 8 months ago (2016-03-29 08:32:13 UTC) #25
skvlad
Moved the header into the correct target (rtc_base_approved); added a unit test for OneTimeEvent. https://codereview.webrtc.org/1765443002/diff/100001/webrtc/base/BUILD.gn ...
4 years, 8 months ago (2016-03-30 23:06:08 UTC) #26
pthatcher1
lgtm https://codereview.webrtc.org/1765443002/diff/120001/nohup.out File nohup.out (right): https://codereview.webrtc.org/1765443002/diff/120001/nohup.out#newcode5 nohup.out:5: New clock: GstSystemClock What's this?
4 years, 8 months ago (2016-03-30 23:20:33 UTC) #27
kjellander_webrtc
*.gn and *.gyp: lgtm
4 years, 8 months ago (2016-03-31 05:52:55 UTC) #28
skvlad
modules/rtp_rtcp and modules/video_coding owners, please take a look.
4 years, 8 months ago (2016-04-04 21:06:41 UTC) #30
skvlad
Ping, please take a quick look when you have a few minutes. It's just a ...
4 years, 8 months ago (2016-04-07 00:52:47 UTC) #31
stefan-webrtc
lgtm https://codereview.webrtc.org/1765443002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc (right): https://codereview.webrtc.org/1765443002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc#newcode353 webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc:353: int32_t sendResult = _rtpSender->SendToNetwork( send_result https://codereview.webrtc.org/1765443002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc#newcode358 webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc:358: LOG(LS_INFO) ...
4 years, 8 months ago (2016-04-07 08:57:36 UTC) #32
skvlad
https://codereview.webrtc.org/1765443002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc (right): https://codereview.webrtc.org/1765443002/diff/140001/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc#newcode353 webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc:353: int32_t sendResult = _rtpSender->SendToNetwork( On 2016/04/07 08:57:36, stefan-webrtc (holmer) ...
4 years, 8 months ago (2016-04-07 21:36:34 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765443002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765443002/160001
4 years, 8 months ago (2016-04-07 21:38:55 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-07 22:36:49 UTC) #37
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 22:37:00 UTC) #39
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/98bb6640d22e9fe03696054b5e054f174db7739f
Cr-Commit-Position: refs/heads/master@{#12287}

Powered by Google App Engine
This is Rietveld 408576698