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

Issue 3011623002: Add new ANA stats to GetStats() to count the number of actions taken by each controller. (Closed)

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

Description

Add new ANA stats to the old GetStats() to count the number of actions taken by each controller. This CL only wires up the new stats but does not set the values yet. This will be added in a follow-up CL. BUG=webrtc:8127 Review-Url: https://codereview.webrtc.org/3011623002 Cr-Commit-Position: refs/heads/master@{#19751} Committed: https://chromium.googlesource.com/external/webrtc/+/e1198e068bdcb01dcb8799d6871018092711714e

Patch Set 1 : Initial version #

Total comments: 14

Patch Set 2 : Fix for review comments. #

Patch Set 3 : Addressed review comments. #

Total comments: 17

Patch Set 4 : Next round of comments. #

Total comments: 2

Patch Set 5 : Improved comments. #

Total comments: 4

Patch Set 6 : Added/updated links to issue. #

Total comments: 5

Patch Set 7 : Moved ANAStats to audio_encoder.h #

Total comments: 2

Patch Set 8 : Added thread check. #

Patch Set 9 : Rebase. #

Patch Set 10 : Added missing build dependency. #

Patch Set 11 : Fix for failing test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -1 line) Patch
M webrtc/api/audio_codecs/audio_encoder.h View 1 2 3 4 5 6 7 8 2 chunks +30 lines, -0 lines 0 comments Download
M webrtc/api/audio_codecs/audio_encoder.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M webrtc/api/statstypes.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/api/statstypes.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/call/audio_send_stream.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/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/acm2/audio_coding_module.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h View 1 2 1 chunk +2 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 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/include/audio_network_adaptor.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_audio_network_adaptor.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/include/audio_coding_module.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/pc/statscollector.cc View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
M webrtc/pc/statscollector_unittest.cc View 1 2 3 3 chunks +42 lines, -0 lines 0 comments Download
M webrtc/test/mock_voe_channel_proxy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 57 (21 generated)
ivoc
Hi guys, PTAL at this CL to add some useful new stats related to ANA.
3 years, 3 months ago (2017-08-30 15:05:36 UTC) #4
minyue-webrtc
https://codereview.webrtc.org/3011623002/diff/1/webrtc/modules/audio_coding/include/audio_coding_module.h File webrtc/modules/audio_coding/include/audio_coding_module.h (right): https://codereview.webrtc.org/3011623002/diff/1/webrtc/modules/audio_coding/include/audio_coding_module.h#newcode827 webrtc/modules/audio_coding/include/audio_coding_module.h:827: virtual AudioEncoder::AudioEncoderStats GetAudioEncoderStatistics() const = 0; I think it ...
3 years, 3 months ago (2017-08-31 07:24:21 UTC) #5
ossu
Comments ahoy! https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h File webrtc/api/audio_codecs/audio_encoder.h (right): https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h#newcode88 webrtc/api/audio_codecs/audio_encoder.h:88: rtc::Optional<int> ana_bitrate_action_counter; Are all these individually optional? ...
3 years, 3 months ago (2017-08-31 13:13:10 UTC) #6
minyue-webrtc
https://codereview.webrtc.org/3011623002/diff/1/webrtc/modules/audio_coding/include/audio_coding_module.h File webrtc/modules/audio_coding/include/audio_coding_module.h (right): https://codereview.webrtc.org/3011623002/diff/1/webrtc/modules/audio_coding/include/audio_coding_module.h#newcode827 webrtc/modules/audio_coding/include/audio_coding_module.h:827: virtual AudioEncoder::AudioEncoderStats GetAudioEncoderStatistics() const = 0; On 2017/08/31 13:13:10, ...
3 years, 3 months ago (2017-08-31 13:20:17 UTC) #7
hbos
I'm busy sheriffing and other high priority things, I'll probably be able to take a ...
3 years, 3 months ago (2017-08-31 13:29:32 UTC) #8
ivoc
Thanks for the comments! https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h File webrtc/api/audio_codecs/audio_encoder.h (right): https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h#newcode88 webrtc/api/audio_codecs/audio_encoder.h:88: rtc::Optional<int> ana_bitrate_action_counter; On 2017/08/31 13:13:10, ...
3 years, 3 months ago (2017-08-31 14:57:50 UTC) #9
minyue-webrtc
On 2017/08/31 14:57:50, ivoc wrote: > Thanks for the comments! > > https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h > File ...
3 years, 3 months ago (2017-08-31 15:18:08 UTC) #10
ossu
On 2017/08/31 15:18:08, minyue-webrtc wrote: > On 2017/08/31 14:57:50, ivoc wrote: > > Minyue: do ...
3 years, 3 months ago (2017-08-31 15:40:20 UTC) #11
ivoc
https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h File webrtc/api/audio_codecs/audio_encoder.h (right): https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h#newcode88 webrtc/api/audio_codecs/audio_encoder.h:88: rtc::Optional<int> ana_bitrate_action_counter; On 2017/08/31 15:40:20, ossu wrote: > On ...
3 years, 3 months ago (2017-09-01 09:34:24 UTC) #12
minyue-webrtc
On 2017/09/01 09:34:24, ivoc wrote: > https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h > File webrtc/api/audio_codecs/audio_encoder.h (right): > > https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h#newcode88 > ...
3 years, 3 months ago (2017-09-01 10:42:27 UTC) #13
hbos
Ah, short on time again, I'll take a look first thing on monday - promise.
3 years, 3 months ago (2017-09-01 13:58:42 UTC) #14
ossu
On 2017/09/01 10:42:27, minyue-webrtc(BackIn2018March) wrote: > On 2017/09/01 09:34:24, ivoc wrote: > > > > ...
3 years, 3 months ago (2017-09-01 14:28:52 UTC) #15
ivoc
Thanks for the good discussions, I implemented most of your suggestions. https://codereview.webrtc.org/3011623002/diff/1/webrtc/api/audio_codecs/audio_encoder.h File webrtc/api/audio_codecs/audio_encoder.h (right): ...
3 years, 3 months ago (2017-09-01 15:27:17 UTC) #16
hbos
What is the plan for these stats, since they're non-standards? Please document the meaning of ...
3 years, 3 months ago (2017-09-04 08:49:54 UTC) #17
ossu
https://codereview.webrtc.org/3011623002/diff/40001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/3011623002/diff/40001/webrtc/common_types.h#newcode440 webrtc/common_types.h:440: ~ANAStats(); On 2017/09/04 08:49:54, hbos wrote: > Is this ...
3 years, 3 months ago (2017-09-04 11:23:02 UTC) #18
ivoc
https://codereview.webrtc.org/3011623002/diff/40001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/3011623002/diff/40001/webrtc/common_types.h#newcode445 webrtc/common_types.h:445: rtc::Optional<int> frame_length_action_counter; On 2017/09/04 08:49:54, hbos wrote: > Please ...
3 years, 3 months ago (2017-09-04 15:48:07 UTC) #19
ossu
lgtm % clarifying comments https://codereview.webrtc.org/3011623002/diff/60001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/3011623002/diff/60001/webrtc/common_types.h#newcode441 webrtc/common_types.h:441: // Number of actions taken ...
3 years, 3 months ago (2017-09-05 10:19:02 UTC) #20
ivoc
@hbos: I think these new stats could considered for standardization in the future. I don't ...
3 years, 3 months ago (2017-09-06 11:46:16 UTC) #21
ivoc
By the way, I would like to land this before monday, if possible. Feel free ...
3 years, 3 months ago (2017-09-06 15:56:40 UTC) #22
hbos
lgtm, I reviewed everything! Can you file an issue on https://github.com/w3c/webrtc-stats/issues ? https://codereview.webrtc.org/3011623002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc ...
3 years, 3 months ago (2017-09-07 15:47:47 UTC) #23
ivoc
Thanks! I filed an issue at https://github.com/w3c/webrtc-stats/issues/240 https://codereview.webrtc.org/3011623002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (right): https://codereview.webrtc.org/3011623002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc#newcode140 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc:140: // Tracking ...
3 years, 3 months ago (2017-09-07 16:14:32 UTC) #24
ivoc
Adding kwiberg to review changes to webrtc/common_types.{cc,h}.
3 years, 3 months ago (2017-09-08 07:50:33 UTC) #26
kwiberg-webrtc
https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h#newcode437 webrtc/common_types.h:437: struct ANAStats { The struct itself looks good, but ...
3 years, 3 months ago (2017-09-08 08:09:50 UTC) #27
kwiberg-webrtc
https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h#newcode437 webrtc/common_types.h:437: struct ANAStats { On 2017/09/08 08:09:49, kwiberg-webrtc wrote: > ...
3 years, 3 months ago (2017-09-08 08:11:47 UTC) #28
ivoc
https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h#newcode437 webrtc/common_types.h:437: struct ANAStats { On 2017/09/08 08:11:47, kwiberg-webrtc wrote: > ...
3 years, 3 months ago (2017-09-08 08:39:08 UTC) #29
ossu
https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h#newcode437 webrtc/common_types.h:437: struct ANAStats { On 2017/09/08 08:39:08, ivoc wrote: > ...
3 years, 3 months ago (2017-09-08 09:01:33 UTC) #30
ivoc
https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h File webrtc/common_types.h (right): https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h#newcode437 webrtc/common_types.h:437: struct ANAStats { On 2017/09/08 09:01:32, ossu wrote: > ...
3 years, 3 months ago (2017-09-08 09:16:38 UTC) #31
the sun
On 2017/09/08 09:16:38, ivoc wrote: > https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h > File webrtc/common_types.h (right): > > https://codereview.webrtc.org/3011623002/diff/100001/webrtc/common_types.h#newcode437 > ...
3 years, 3 months ago (2017-09-08 10:41:37 UTC) #32
the sun
LGTM Slight concern that we're adding ANA to the public AudioEncoder interface; does the way ...
3 years, 3 months ago (2017-09-08 10:43:16 UTC) #33
ivoc
Thanks! There was some discussion with ossu about how to put this on the AudioEncoder ...
3 years, 3 months ago (2017-09-08 11:25:50 UTC) #34
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/3011623002/220001
3 years, 3 months ago (2017-09-08 14:32:37 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/21379)
3 years, 3 months ago (2017-09-08 14:38:15 UTC) #48
ivoc
Adding stefan as reviewer for changes in webrtc/pc/statscollector.cc, webrtc/pc/statscollector_unittest.cc and webrtc/test/mock_voe_channel_proxy.h
3 years, 3 months ago (2017-09-08 14:52:10 UTC) #51
stefan-webrtc
lgtm
3 years, 3 months ago (2017-09-08 15:00:41 UTC) #52
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/3011623002/220001
3 years, 3 months ago (2017-09-08 15:01:32 UTC) #54
commit-bot: I haz the power
3 years, 3 months ago (2017-09-08 15:13:28 UTC) #57
Message was sent while issue was closed.
Committed patchset #11 (id:220001) as
https://chromium.googlesource.com/external/webrtc/+/e1198e068bdcb01dcb8799d68...

Powered by Google App Engine
This is Rietveld 408576698