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

Issue 2559953002: Log audio network adapter decisions in event log. (Closed)

Created:
4 years ago by michaelt
Modified:
3 years, 11 months ago
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, Andrew MacDonald, henrika_webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Log audio network adapter decisions in event log. BUG=webrtc:6845 Review-Url: https://codereview.webrtc.org/2559953002 Cr-Commit-Position: refs/heads/master@{#16053} Committed: https://chromium.googlesource.com/external/webrtc/+/3663681b5d05682f38e75d9eaf6049299f62fb02

Patch Set 1 : Log Ana #

Total comments: 10

Patch Set 2 : Response to comments. #

Total comments: 9

Patch Set 3 : Response to comments #

Patch Set 4 : Response to comments #

Total comments: 28

Patch Set 5 : Response to comments. #

Total comments: 8

Patch Set 6 : Responde to comments. #

Total comments: 16

Patch Set 7 : Response to comments #

Total comments: 6

Patch Set 8 : Minyue's changes #

Total comments: 5

Patch Set 9 : Added a parser and a unittest #

Patch Set 10 : Rebased #

Total comments: 6

Patch Set 11 : Responde to comments. #

Patch Set 12 : Change abs to fabs #

Patch Set 13 : Fix windows build #

Patch Set 14 : Revert ana dump changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -5 lines) Patch
M webrtc/logging/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/logging/rtc_event_log/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log.cc View 1 2 3 4 5 6 7 2 chunks +25 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log.proto View 1 2 3 4 5 6 7 8 3 chunks +25 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_parser.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -1 line 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_parser.cc View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +35 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
M webrtc/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc View 1 2 3 4 5 6 7 5 chunks +20 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.h View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +68 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +265 lines, -0 lines 0 comments Download
M webrtc/tools/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/tools/event_log_visualizer/analyzer.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 90 (50 generated)
michaelt
Here the Cl which does the actual logging.
4 years ago (2016-12-08 14:53:00 UTC) #18
minyue-webrtc
Before going into fine details, I add some general questions https://codereview.webrtc.org/2559953002/diff/60001/webrtc/logging/rtc_event_log/rtc_event_log.proto File webrtc/logging/rtc_event_log/rtc_event_log.proto (right): https://codereview.webrtc.org/2559953002/diff/60001/webrtc/logging/rtc_event_log/rtc_event_log.proto#newcode71 ...
4 years ago (2016-12-12 10:33:12 UTC) #19
michaelt
https://codereview.webrtc.org/2559953002/diff/60001/webrtc/logging/rtc_event_log/rtc_event_log.proto File webrtc/logging/rtc_event_log/rtc_event_log.proto (right): https://codereview.webrtc.org/2559953002/diff/60001/webrtc/logging/rtc_event_log/rtc_event_log.proto#newcode71 webrtc/logging/rtc_event_log/rtc_event_log.proto:71: optional AudioNetworkAdaptorDecition audio_network_adaptor_decition = 12; Sure why not "AudioEncoderRuntimeConfig" ...
4 years ago (2016-12-12 10:50:08 UTC) #20
minyue-webrtc
https://codereview.webrtc.org/2559953002/diff/60001/webrtc/logging/rtc_event_log/rtc_event_log.proto File webrtc/logging/rtc_event_log/rtc_event_log.proto (right): https://codereview.webrtc.org/2559953002/diff/60001/webrtc/logging/rtc_event_log/rtc_event_log.proto#newcode235 webrtc/logging/rtc_event_log/rtc_event_log.proto:235: message AudioNetworkAdaptorDecition { is it possible to merge this ...
4 years ago (2016-12-13 10:52:02 UTC) #21
michaelt
https://codereview.webrtc.org/2559953002/diff/60001/webrtc/logging/rtc_event_log/rtc_event_log.proto File webrtc/logging/rtc_event_log/rtc_event_log.proto (right): https://codereview.webrtc.org/2559953002/diff/60001/webrtc/logging/rtc_event_log/rtc_event_log.proto#newcode235 webrtc/logging/rtc_event_log/rtc_event_log.proto:235: message AudioNetworkAdaptorDecition { On 2016/12/13 10:52:02, minyue-webrtc wrote: > ...
4 years ago (2016-12-13 15:44:39 UTC) #22
minyue-webrtc
lgtm https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/rtc_event_log/rtc_event_log.cc File webrtc/logging/rtc_event_log/rtc_event_log.cc (right): https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/rtc_event_log/rtc_event_log.cc#newcode447 webrtc/logging/rtc_event_log/rtc_event_log.cc:447: rtc::Optional<int> bitrate_bps, can we even pass an ana_event ...
4 years ago (2016-12-13 16:02:16 UTC) #23
minyue-webrtc
On 2016/12/13 16:02:16, minyue-webrtc wrote: > lgtm > > https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/rtc_event_log/rtc_event_log.cc > File webrtc/logging/rtc_event_log/rtc_event_log.cc (right): > ...
4 years ago (2016-12-13 16:04:30 UTC) #24
the sun
https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/BUILD.gn File webrtc/logging/BUILD.gn (right): https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/BUILD.gn#newcode86 webrtc/logging/BUILD.gn:86: proto_in_dir = "//" Enlighten me - what is the ...
4 years ago (2016-12-13 16:31:18 UTC) #25
michaelt
https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/BUILD.gn File webrtc/logging/BUILD.gn (right): https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/BUILD.gn#newcode86 webrtc/logging/BUILD.gn:86: proto_in_dir = "//" To be able to include debug_dump.proto ...
4 years ago (2016-12-14 14:41:37 UTC) #26
minyue-webrtc
https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h File webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h (right): https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h#newcode61 webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h:61: MOCK_METHOD6(LogAnaDecisionEvent, On 2016/12/14 14:41:37, michaelt wrote: > Would you ...
4 years ago (2016-12-16 13:50:32 UTC) #27
michaelt
https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h File webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h (right): https://codereview.webrtc.org/2559953002/diff/80001/webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h#newcode61 webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h:61: MOCK_METHOD6(LogAnaDecisionEvent, After a offline discussion, minyue and me agreed ...
4 years ago (2016-12-20 09:29:55 UTC) #28
minyue-webrtc
nice work! I have some suggestions. Plus, a naming concern (again ... my apologies) https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc ...
4 years ago (2016-12-20 10:39:29 UTC) #29
michaelt
https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc File webrtc/logging/rtc_event_log/rtc_event_log.cc (right): https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc#newcode446 webrtc/logging/rtc_event_log/rtc_event_log.cc:446: event->set_type(rtclog::Event::AUDIO_NETWORK_ADAPTOR_EVENT); On 2016/12/20 10:39:29, minyue-webrtc wrote: > Slightly confusing ...
4 years ago (2016-12-20 13:41:41 UTC) #30
minyue-webrtc
thanks! but do you mind considering these remaining issues. https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc File webrtc/logging/rtc_event_log/rtc_event_log.cc (right): https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc#newcode446 webrtc/logging/rtc_event_log/rtc_event_log.cc:446: ...
4 years ago (2016-12-20 14:11:06 UTC) #31
michaelt
https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc File webrtc/logging/rtc_event_log/rtc_event_log.cc (right): https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc#newcode446 webrtc/logging/rtc_event_log/rtc_event_log.cc:446: event->set_type(rtclog::Event::AUDIO_NETWORK_ADAPTOR_EVENT); Right :) Done https://codereview.webrtc.org/2559953002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer_unittest.cc File webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer_unittest.cc (right): https://codereview.webrtc.org/2559953002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer_unittest.cc#newcode43 ...
4 years ago (2016-12-20 14:34:04 UTC) #32
minyue-webrtc
On 2016/12/20 14:34:04, michaelt wrote: > https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc > File webrtc/logging/rtc_event_log/rtc_event_log.cc (right): > > https://codereview.webrtc.org/2559953002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc#newcode446 > ...
4 years ago (2016-12-20 21:12:00 UTC) #33
minyue-webrtc
-sun@ since he is on vacation. ~~~~ +stefan@ Hi Stefan, you are the owner of ...
4 years ago (2016-12-21 13:39:43 UTC) #35
hlundin-webrtc
audio_coding: lgtm with two nits. https://codereview.webrtc.org/2559953002/diff/160001/webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc File webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc (right): https://codereview.webrtc.org/2559953002/diff/160001/webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc#newcode15 webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc:15: #include "webrtc/logging/rtc_event_log/rtc_event_log.h" Order of ...
4 years ago (2016-12-21 15:13:12 UTC) #36
stefan-webrtc
I would prefer that terelius reviews this. I don't think I know the code well ...
4 years ago (2016-12-22 08:40:25 UTC) #38
michaelt
https://codereview.webrtc.org/2559953002/diff/160001/webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc File webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc (right): https://codereview.webrtc.org/2559953002/diff/160001/webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc#newcode15 webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.cc:15: #include "webrtc/logging/rtc_event_log/rtc_event_log.h" On 2016/12/21 15:13:12, hlundin-webrtc wrote: > Order ...
4 years ago (2016-12-22 12:03:12 UTC) #39
terelius
Are you planning any tools to visualize or otherwise use the new events? https://codereview.webrtc.org/2559953002/diff/180001/webrtc/logging/rtc_event_log/rtc_event_log.proto File ...
3 years, 12 months ago (2016-12-22 16:04:25 UTC) #40
minyue-webrtc
Hi Michael, I cannot help updating the CL as promised before your vacation. So I ...
3 years, 11 months ago (2016-12-29 20:28:51 UTC) #41
michaelt
Uploaded changes minyue did in a separate CL. https://codereview.webrtc.org/2609583002/
3 years, 11 months ago (2017-01-10 14:32:41 UTC) #42
terelius
Thanks. Looks much better, but I still have some comments: Could you add a function ...
3 years, 11 months ago (2017-01-11 13:29:39 UTC) #43
terelius
https://codereview.webrtc.org/2559953002/diff/200001/webrtc/logging/rtc_event_log/rtc_event_log.proto File webrtc/logging/rtc_event_log/rtc_event_log.proto (right): https://codereview.webrtc.org/2559953002/diff/200001/webrtc/logging/rtc_event_log/rtc_event_log.proto#newcode235 webrtc/logging/rtc_event_log/rtc_event_log.proto:235: message AudioNetworkAdaptation { If one PeerConnection can have multiple ...
3 years, 11 months ago (2017-01-11 14:33:46 UTC) #44
michaelt
I currently use a python script to visualize the audio network adapter dump. We will ...
3 years, 11 months ago (2017-01-11 14:41:29 UTC) #45
michaelt
Added a parser and a unittest. https://codereview.webrtc.org/2559953002/diff/200001/webrtc/logging/rtc_event_log/rtc_event_log.proto File webrtc/logging/rtc_event_log/rtc_event_log.proto (right): https://codereview.webrtc.org/2559953002/diff/200001/webrtc/logging/rtc_event_log/rtc_event_log.proto#newcode40 webrtc/logging/rtc_event_log/rtc_event_log.proto:40: AUDIO_NETWORK_ADAPTATION_EVENT = 12; ...
3 years, 11 months ago (2017-01-11 17:03:43 UTC) #46
the sun
https://codereview.webrtc.org/2559953002/diff/240001/webrtc/logging/BUILD.gn File webrtc/logging/BUILD.gn (right): https://codereview.webrtc.org/2559953002/diff/240001/webrtc/logging/BUILD.gn#newcode44 webrtc/logging/BUILD.gn:44: "../api:call_api", call_api only pulls in "call/audio_sink.h" directly. Is it ...
3 years, 11 months ago (2017-01-12 13:35:06 UTC) #56
terelius
https://codereview.webrtc.org/2559953002/diff/200001/webrtc/logging/rtc_event_log/rtc_event_log.proto File webrtc/logging/rtc_event_log/rtc_event_log.proto (right): https://codereview.webrtc.org/2559953002/diff/200001/webrtc/logging/rtc_event_log/rtc_event_log.proto#newcode235 webrtc/logging/rtc_event_log/rtc_event_log.proto:235: message AudioNetworkAdaptation { On 2017/01/11 14:41:29, michaelt wrote: > ...
3 years, 11 months ago (2017-01-12 14:25:40 UTC) #57
michaelt
ANA is optional. So if some decides to use ANA for a Multi-party calls it ...
3 years, 11 months ago (2017-01-12 14:30:28 UTC) #58
terelius
On 2017/01/12 14:30:28, michaelt wrote: > ANA is optional. So if some decides to use ...
3 years, 11 months ago (2017-01-12 14:36:16 UTC) #59
michaelt
https://codereview.webrtc.org/2559953002/diff/240001/webrtc/logging/BUILD.gn File webrtc/logging/BUILD.gn (right): https://codereview.webrtc.org/2559953002/diff/240001/webrtc/logging/BUILD.gn#newcode44 webrtc/logging/BUILD.gn:44: "../api:call_api", Removed i seams this is just a dependency ...
3 years, 11 months ago (2017-01-12 14:36:54 UTC) #60
michaelt
No. It will just be activate under experiment under certain conditions.
3 years, 11 months ago (2017-01-12 14:41:16 UTC) #61
terelius
Ok, thanks for explaining. lgtm
3 years, 11 months ago (2017-01-12 14:46:50 UTC) #62
the sun
On 2017/01/12 14:46:50, terelius wrote: > Ok, thanks for explaining. lgtm lgtm for webrtc/voice_engine/channel.cc
3 years, 11 months ago (2017-01-12 15:10:30 UTC) #67
commit-bot: I haz the power
This CL has an open dependency (Issue 2553413002 Patch 80001). Please resolve the dependency and ...
3 years, 11 months ago (2017-01-12 18:35:04 UTC) #81
commit-bot: I haz the power
This CL has an open dependency (Issue 2553413002 Patch 80001). Please resolve the dependency and ...
3 years, 11 months ago (2017-01-13 11:53:35 UTC) #84
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2559953002/320001
3 years, 11 months ago (2017-01-13 14:08:16 UTC) #86
commit-bot: I haz the power
Committed patchset #14 (id:320001) as https://chromium.googlesource.com/external/webrtc/+/3663681b5d05682f38e75d9eaf6049299f62fb02
3 years, 11 months ago (2017-01-13 14:10:22 UTC) #89
sakal
3 years, 11 months ago (2017-01-13 14:51:45 UTC) #90
Message was sent while issue was closed.
A revert of this CL (patchset #14 id:320001) has been created in
https://codereview.webrtc.org/2631703002/ by sakal@webrtc.org.

The reason for reverting is: Breaks chromium.webrtc.fyi..

Powered by Google App Engine
This is Rietveld 408576698