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

Issue 2986893002: Piggybacking simulcast id and ALR experiment id into video content type extension. (Closed)

Created:
3 years, 4 months ago by ilnik
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, danilchap, yujie_mao (webrtc), peah-webrtc, zhuangzesen_agora.io, henrika_webrtc, zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, fengyue_agora.io, kwiberg-webrtc, the sun, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Piggybacking simulcast id and ALR experiment id into video content type extension. Use it to slice UMA video receive statis. BUG=8032 Review-Url: https://codereview.webrtc.org/2986893002 Cr-Commit-Position: refs/heads/master@{#19598} Committed: https://chromium.googlesource.com/external/webrtc/+/6d5b4d6fe13951a7f3f6ed3d3b29bc601920e381

Patch Set 1 #

Total comments: 27

Patch Set 2 : Change nameing style of metrics with simulcast suffixies #

Total comments: 1

Patch Set 3 : Implemented sprang@ comments #

Patch Set 4 : REBASE #

Patch Set 5 : Cleanup #

Patch Set 6 : Rebase #

Patch Set 7 : Add metrics sliced on AlrExperiment group #

Total comments: 22

Patch Set 8 : Add new sliced metrics, tests and implement commets by Sprang@ #

Total comments: 4

Patch Set 9 : rebase #

Patch Set 10 : Implement Sprang@ comments #

Patch Set 11 : Fix tests #

Total comments: 8

Patch Set 12 : Shorten metrics macro and fix metrics unittest" #

Patch Set 13 : change the way metrics are aggregated. #

Patch Set 14 : Cleanup #

Total comments: 19

Patch Set 15 : Implement Sprang@ comments #

Total comments: 10

Patch Set 16 : Change const static members of VideoContentType to constexpr #

Total comments: 4

Patch Set 17 : Remove static initialization from VideoContentType and remove memoization in AlrDetector #

Total comments: 6

Patch Set 18 : Make VideoContentType a simple enum again. Implement Philipel comments #

Total comments: 2

Patch Set 19 : Cleanup #

Total comments: 10

Patch Set 20 : Implement kwiberg@ comments #

Total comments: 2

Patch Set 21 : use namespace instead of struct #

Unified diffs Side-by-side diffs Delta from patch set Stats (+603 lines, -165 lines) Patch
M webrtc/api/BUILD.gn View 1 2 3 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/video/video_content_type.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +14 lines, -1 line 0 comments Download
A webrtc/api/video/video_content_type.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +94 lines, -0 lines 0 comments Download
M webrtc/common_video/include/video_frame.h View 1 2 3 17 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/pacing/alr_detector.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/pacing/alr_detector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_utility.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/video_coding/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/video_coding/frame_buffer2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/frame_buffer2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 17 2 chunks +6 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/generic_encoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/generic_encoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +39 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/include/video_coding_defines.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/system_wrappers/include/metrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +49 lines, -18 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 4 chunks +15 lines, -9 lines 0 comments Download
M webrtc/video/receive_statistics_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +23 lines, -11 lines 0 comments Download
M webrtc/video/receive_statistics_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 15 chunks +213 lines, -85 lines 0 comments Download
M webrtc/video/receive_statistics_proxy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 9 chunks +116 lines, -23 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/video/video_stream_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/video/video_stream_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 68 (34 generated)
ilnik
3 years, 4 months ago (2017-07-26 13:07:24 UTC) #2
sprang_webrtc
https://codereview.webrtc.org/2986893002/diff/1/webrtc/api/video/video_content_type.cc File webrtc/api/video/video_content_type.cc (right): https://codereview.webrtc.org/2986893002/diff/1/webrtc/api/video/video_content_type.cc#newcode18 webrtc/api/video/video_content_type.cc:18: */ Remove https://codereview.webrtc.org/2986893002/diff/1/webrtc/api/video/video_content_type.h File webrtc/api/video/video_content_type.h (right): https://codereview.webrtc.org/2986893002/diff/1/webrtc/api/video/video_content_type.h#newcode21 webrtc/api/video/video_content_type.h:21: static ...
3 years, 4 months ago (2017-07-26 14:13:43 UTC) #3
ilnik
https://codereview.webrtc.org/2986893002/diff/20001/webrtc/video/end_to_end_tests.cc File webrtc/video/end_to_end_tests.cc (right): https://codereview.webrtc.org/2986893002/diff/20001/webrtc/video/end_to_end_tests.cc#newcode2707 webrtc/video/end_to_end_tests.cc:2707: EXPECT_EQ(1, metrics::NumSamples(video_prefix_sliced + "EndToEndDelayInMs")); Need to fix this test. ...
3 years, 4 months ago (2017-07-26 14:15:23 UTC) #4
ilnik
https://codereview.webrtc.org/2986893002/diff/1/webrtc/api/video/video_content_type.cc File webrtc/api/video/video_content_type.cc (right): https://codereview.webrtc.org/2986893002/diff/1/webrtc/api/video/video_content_type.cc#newcode18 webrtc/api/video/video_content_type.cc:18: */ On 2017/07/26 14:13:42, sprang_webrtc wrote: > Remove Done. ...
3 years, 4 months ago (2017-07-26 14:49:49 UTC) #5
ilnik
+philipel for alr_detector configuration-related changes.
3 years, 4 months ago (2017-08-23 15:13:33 UTC) #8
sprang_webrtc
Moving in the direction, think this is going to be great. Some more comments though ...
3 years, 4 months ago (2017-08-24 09:13:16 UTC) #9
ilnik
https://codereview.webrtc.org/2986893002/diff/120001/webrtc/api/video/video_content_type.cc File webrtc/api/video/video_content_type.cc (right): https://codereview.webrtc.org/2986893002/diff/120001/webrtc/api/video/video_content_type.cc#newcode29 webrtc/api/video/video_content_type.cc:29: } On 2017/08/24 09:13:16, sprang_webrtc wrote: > \n Done. ...
3 years, 3 months ago (2017-08-25 12:35:07 UTC) #10
sprang_webrtc
Looks good, but see comment about content type changing during call. https://codereview.webrtc.org/2986893002/diff/140001/webrtc/video/receive_statistics_proxy.cc File webrtc/video/receive_statistics_proxy.cc (right): ...
3 years, 3 months ago (2017-08-25 13:56:29 UTC) #15
ilnik
https://codereview.webrtc.org/2986893002/diff/140001/webrtc/video/receive_statistics_proxy.cc File webrtc/video/receive_statistics_proxy.cc (right): https://codereview.webrtc.org/2986893002/diff/140001/webrtc/video/receive_statistics_proxy.cc#newcode69 webrtc/video/receive_statistics_proxy.cc:69: std::string UmaExperimentSuffixConentType(VideoContentType content_type) { On 2017/08/25 13:56:29, sprang_webrtc wrote: ...
3 years, 3 months ago (2017-08-25 14:14:27 UTC) #16
sprang_webrtc
https://codereview.webrtc.org/2986893002/diff/200001/webrtc/video/receive_statistics_proxy.cc File webrtc/video/receive_statistics_proxy.cc (right): https://codereview.webrtc.org/2986893002/diff/200001/webrtc/video/receive_statistics_proxy.cc#newcode139 webrtc/video/receive_statistics_proxy.cc:139: for (auto it : content_specific_stats_) { I think it ...
3 years, 3 months ago (2017-08-28 07:58:30 UTC) #21
ilnik
https://codereview.webrtc.org/2986893002/diff/200001/webrtc/video/receive_statistics_proxy.cc File webrtc/video/receive_statistics_proxy.cc (right): https://codereview.webrtc.org/2986893002/diff/200001/webrtc/video/receive_statistics_proxy.cc#newcode139 webrtc/video/receive_statistics_proxy.cc:139: for (auto it : content_specific_stats_) { On 2017/08/28 07:58:30, ...
3 years, 3 months ago (2017-08-28 14:54:34 UTC) #26
sprang_webrtc
Looking much better! Just a few more comments, most of them nits. https://codereview.webrtc.org/2986893002/diff/260001/webrtc/video/receive_statistics_proxy.cc File webrtc/video/receive_statistics_proxy.cc ...
3 years, 3 months ago (2017-08-28 16:25:03 UTC) #29
ilnik
+tommi for: webrtc/api/ webrtc/BUILD.gn trivial changes in webrtc/modules/rtp_rtcp trivial changes in webrtc/common_video/include/video_frame.h +asapersson for: webrtc/system_wrappers/include/metrics.h ...
3 years, 3 months ago (2017-08-29 07:52:07 UTC) #32
ilnik
https://codereview.webrtc.org/2986893002/diff/260001/webrtc/video/receive_statistics_proxy.cc File webrtc/video/receive_statistics_proxy.cc (right): https://codereview.webrtc.org/2986893002/diff/260001/webrtc/video/receive_statistics_proxy.cc#newcode126 webrtc/video/receive_statistics_proxy.cc:126: << stream_duration_sec; On 2017/08/28 16:25:02, sprang_webrtc wrote: > Check ...
3 years, 3 months ago (2017-08-29 07:56:27 UTC) #33
sprang_webrtc
lgtm https://codereview.webrtc.org/2986893002/diff/260001/webrtc/video/receive_statistics_proxy.cc File webrtc/video/receive_statistics_proxy.cc (right): https://codereview.webrtc.org/2986893002/diff/260001/webrtc/video/receive_statistics_proxy.cc#newcode229 webrtc/video/receive_statistics_proxy.cc:229: aggregated_stats[content_type].Add(it.second); On 2017/08/29 07:56:27, ilnik wrote: > On ...
3 years, 3 months ago (2017-08-29 08:04:38 UTC) #34
tommi
https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.cc File webrtc/api/video/video_content_type.cc (right): https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.cc#newcode39 webrtc/api/video/video_content_type.cc:39: const VideoContentType VideoContentType::UNSPECIFIED = VideoContentType({0}); if for some reason ...
3 years, 3 months ago (2017-08-29 09:25:45 UTC) #39
ilnik
https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.cc File webrtc/api/video/video_content_type.cc (right): https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.cc#newcode39 webrtc/api/video/video_content_type.cc:39: const VideoContentType VideoContentType::UNSPECIFIED = VideoContentType({0}); On 2017/08/29 09:25:45, tommi ...
3 years, 3 months ago (2017-08-29 10:26:15 UTC) #40
philipel
https://codereview.webrtc.org/2986893002/diff/300001/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/2986893002/diff/300001/webrtc/modules/pacing/alr_detector.cc#newcode85 webrtc/modules/pacing/alr_detector.cc:85: static std::map<const char*, Is this thread safe? ParseAlrSettingsFromFieldTrial is ...
3 years, 3 months ago (2017-08-29 11:25:49 UTC) #41
kwiberg-webrtc
https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.h File webrtc/api/video/video_content_type.h (right): https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.h#newcode21 webrtc/api/video/video_content_type.h:21: static const VideoContentType UNSPECIFIED; On 2017/08/29 10:26:14, ilnik wrote: ...
3 years, 3 months ago (2017-08-29 11:44:29 UTC) #43
ilnik
philipel, please check also latest changes in generic_encoder.(cc|h) and how AlrDetector is used there. https://codereview.webrtc.org/2986893002/diff/300001/webrtc/modules/pacing/alr_detector.cc ...
3 years, 3 months ago (2017-08-29 11:48:16 UTC) #44
ilnik
https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.h File webrtc/api/video/video_content_type.h (right): https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.h#newcode21 webrtc/api/video/video_content_type.h:21: static const VideoContentType UNSPECIFIED; On 2017/08/29 11:44:28, kwiberg-webrtc wrote: ...
3 years, 3 months ago (2017-08-29 12:01:57 UTC) #45
philipel
https://codereview.webrtc.org/2986893002/diff/320001/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/2986893002/diff/320001/webrtc/modules/pacing/alr_detector.cc#newcode13 webrtc/modules/pacing/alr_detector.cc:13: #include <map> Not used. https://codereview.webrtc.org/2986893002/diff/320001/webrtc/modules/video_coding/generic_encoder.cc File webrtc/modules/video_coding/generic_encoder.cc (right): https://codereview.webrtc.org/2986893002/diff/320001/webrtc/modules/video_coding/generic_encoder.cc#newcode193 ...
3 years, 3 months ago (2017-08-29 12:06:15 UTC) #46
kwiberg-webrtc
https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.h File webrtc/api/video/video_content_type.h (right): https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.h#newcode21 webrtc/api/video/video_content_type.h:21: static const VideoContentType UNSPECIFIED; On 2017/08/29 12:01:57, ilnik wrote: ...
3 years, 3 months ago (2017-08-29 12:12:45 UTC) #47
ilnik
https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.h File webrtc/api/video/video_content_type.h (right): https://codereview.webrtc.org/2986893002/diff/280001/webrtc/api/video/video_content_type.h#newcode21 webrtc/api/video/video_content_type.h:21: static const VideoContentType UNSPECIFIED; On 2017/08/29 12:12:45, kwiberg-webrtc wrote: ...
3 years, 3 months ago (2017-08-29 12:41:22 UTC) #48
philipel
lgtm with one final comment. https://codereview.webrtc.org/2986893002/diff/340001/webrtc/modules/video_coding/generic_encoder.cc File webrtc/modules/video_coding/generic_encoder.cc (right): https://codereview.webrtc.org/2986893002/diff/340001/webrtc/modules/video_coding/generic_encoder.cc#newcode332 webrtc/modules/video_coding/generic_encoder.cc:332: // We count simulcast ...
3 years, 3 months ago (2017-08-29 13:04:00 UTC) #51
åsapersson
webrtc/system_wrappers/include/metrics.h: lgtm (but note I am not an owner)
3 years, 3 months ago (2017-08-29 13:07:10 UTC) #52
ilnik
tommi, kwiberg, could you also take a quick look at the webrtc/system_wrappers/include/metrics.h It's been approved ...
3 years, 3 months ago (2017-08-29 13:28:09 UTC) #53
ilnik
https://codereview.webrtc.org/2986893002/diff/340001/webrtc/modules/video_coding/generic_encoder.cc File webrtc/modules/video_coding/generic_encoder.cc (right): https://codereview.webrtc.org/2986893002/diff/340001/webrtc/modules/video_coding/generic_encoder.cc#newcode332 webrtc/modules/video_coding/generic_encoder.cc:332: // We count simulcast streams from 1 on the ...
3 years, 3 months ago (2017-08-29 13:28:23 UTC) #54
kwiberg-webrtc
https://codereview.webrtc.org/2986893002/diff/360001/webrtc/api/video/video_content_type.cc File webrtc/api/video/video_content_type.cc (right): https://codereview.webrtc.org/2986893002/diff/360001/webrtc/api/video/video_content_type.cc#newcode13 webrtc/api/video/video_content_type.cc:13: // VideoContentType stored as a single byte, which is ...
3 years, 3 months ago (2017-08-29 20:58:54 UTC) #55
ilnik
https://codereview.webrtc.org/2986893002/diff/360001/webrtc/api/video/video_content_type.cc File webrtc/api/video/video_content_type.cc (right): https://codereview.webrtc.org/2986893002/diff/360001/webrtc/api/video/video_content_type.cc#newcode13 webrtc/api/video/video_content_type.cc:13: // VideoContentType stored as a single byte, which is ...
3 years, 3 months ago (2017-08-30 07:36:07 UTC) #56
tommi
lgtm w/one comment. We've moved away from using classes as namespaces and instead simply use ...
3 years, 3 months ago (2017-08-30 09:48:08 UTC) #61
ilnik
https://codereview.webrtc.org/2986893002/diff/380001/webrtc/api/video/video_content_type.h File webrtc/api/video/video_content_type.h (right): https://codereview.webrtc.org/2986893002/diff/380001/webrtc/api/video/video_content_type.h#newcode23 webrtc/api/video/video_content_type.h:23: struct VideoContentTypeHelpers { On 2017/08/30 09:48:08, tommi wrote: > ...
3 years, 3 months ago (2017-08-30 10:00:57 UTC) #64
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/2986893002/400001
3 years, 3 months ago (2017-08-30 10:01:00 UTC) #65
commit-bot: I haz the power
3 years, 3 months ago (2017-08-30 10:32:23 UTC) #68
Message was sent while issue was closed.
Committed patchset #21 (id:400001) as
https://chromium.googlesource.com/external/webrtc/+/6d5b4d6fe13951a7f3f6ed3d3...

Powered by Google App Engine
This is Rietveld 408576698