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

Issue 1433393002: Add separate send-side UMA stats for screenshare and video. (Closed)

Created:
5 years, 1 month ago by sprang_webrtc
Modified:
5 years ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), stefan-webrtc, tterriberry_mozilla.com, andresp, the sun, perkj_webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add separate send-side UMA stats for screenshare and video. This CL duplicates all the histograms in SendStatisticsProxy. Might be overkill, but we don't know which stats will be interesting and it makes the change easier. BUG= Committed: https://crrev.com/b4a1ae5299fd57be66c7cbb7a982179bb1ecfb90 Cr-Commit-Position: refs/heads/master@{#10885}

Patch Set 1 #

Patch Set 2 : Reset stats and update histograms on content type change #

Total comments: 12

Patch Set 3 : Addressed comments #

Total comments: 1

Patch Set 4 : Recreate VideoSendStream on content type change #

Patch Set 5 : Fixed tests #

Patch Set 6 : Fixed use-after-free in test #

Total comments: 2

Patch Set 7 : Reset stats in stats_proxy, donstream #

Total comments: 4

Patch Set 8 : Addressed comment #

Patch Set 9 : Actually run UpdateHistograms... #

Total comments: 5

Patch Set 10 : Addressed comments #

Total comments: 1

Patch Set 11 : Fixed compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -95 lines) Patch
M webrtc/video/end_to_end_tests.cc View 1 2 3 4 5 6 10 chunks +44 lines, -23 lines 0 comments Download
M webrtc/video/send_statistics_proxy.h View 1 2 3 4 5 6 7 8 9 3 chunks +38 lines, -19 lines 0 comments Download
M webrtc/video/send_statistics_proxy.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +82 lines, -49 lines 0 comments Download
M webrtc/video/send_statistics_proxy_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/video/video_capture_input_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 51 (11 generated)
sprang_webrtc
5 years, 1 month ago (2015-11-11 18:01:17 UTC) #2
sprang_webrtc
-stefan since he's OOO I've changed this to reset the stats and update the histograms ...
5 years, 1 month ago (2015-11-12 10:20:25 UTC) #4
pbos-webrtc
https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.cc#newcode67 webrtc/video/send_statistics_proxy.cc:67: int input_fps = This one should probably also have ...
5 years, 1 month ago (2015-11-12 10:38:20 UTC) #5
sprang_webrtc
https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.cc#newcode67 webrtc/video/send_statistics_proxy.cc:67: int input_fps = On 2015/11/12 10:38:19, pbos-webrtc wrote: > ...
5 years, 1 month ago (2015-11-12 11:01:25 UTC) #6
pbos-webrtc
https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.h File webrtc/video/send_statistics_proxy.h (right): https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.h#newcode163 webrtc/video/send_statistics_proxy.h:163: rtc::scoped_ptr<StatsSet> stats_set_ GUARDED_BY(crit_); On 2015/11/12 11:01:25, språng wrote: > ...
5 years, 1 month ago (2015-11-12 11:09:40 UTC) #7
sprang_webrtc
https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.h File webrtc/video/send_statistics_proxy.h (right): https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.h#newcode163 webrtc/video/send_statistics_proxy.h:163: rtc::scoped_ptr<StatsSet> stats_set_ GUARDED_BY(crit_); On 2015/11/12 11:09:40, pbos-webrtc wrote: > ...
5 years, 1 month ago (2015-11-12 13:32:06 UTC) #8
pbos-webrtc
On 2015/11/12 13:32:06, språng wrote: > https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.h > File webrtc/video/send_statistics_proxy.h (right): > > https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.h#newcode163 > ...
5 years, 1 month ago (2015-11-12 13:37:20 UTC) #9
sprang_webrtc
On 2015/11/12 13:37:20, pbos-webrtc wrote: > On 2015/11/12 13:32:06, språng wrote: > > > https://codereview.webrtc.org/1433393002/diff/20001/webrtc/video/send_statistics_proxy.h ...
5 years, 1 month ago (2015-11-12 13:49:30 UTC) #10
pbos-webrtc
Do you think we should reset the VideoSendStream in WebRtcVideoEngine2.cc when we switch between screenshare/realtime ...
5 years, 1 month ago (2015-11-12 13:54:44 UTC) #11
sprang_webrtc
As per discussion, now resetting entire send stream on content type change. Feels like there ...
5 years, 1 month ago (2015-11-13 13:06:55 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1433393002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1433393002/60001
5 years, 1 month ago (2015-11-13 14:11:17 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_rel/builds/10802) mac_x64_rel on ...
5 years, 1 month ago (2015-11-13 14:20:10 UTC) #16
pbos-webrtc
On 2015/11/13 13:06:55, språng wrote: > As per discussion, now resetting entire send stream on ...
5 years, 1 month ago (2015-11-17 14:49:10 UTC) #17
pbos-webrtc
On 2015/11/17 14:49:10, pbos-webrtc wrote: > On 2015/11/13 13:06:55, språng wrote: > > As per ...
5 years, 1 month ago (2015-11-17 14:50:08 UTC) #18
sprang_webrtc
On 2015/11/17 14:50:08, pbos-webrtc wrote: > On 2015/11/17 14:49:10, pbos-webrtc wrote: > > On 2015/11/13 ...
5 years, 1 month ago (2015-11-20 09:34:49 UTC) #19
pbos-webrtc
On 2015/11/20 09:34:49, språng wrote: > On 2015/11/17 14:50:08, pbos-webrtc wrote: > > On 2015/11/17 ...
5 years, 1 month ago (2015-11-20 09:43:14 UTC) #20
sprang_webrtc
On 2015/11/20 09:43:14, pbos-webrtc wrote: > On 2015/11/20 09:34:49, språng wrote: > > On 2015/11/17 ...
5 years, 1 month ago (2015-11-20 11:11:11 UTC) #21
sprang_webrtc
ping?
5 years, 1 month ago (2015-11-23 12:37:50 UTC) #22
mflodman
On 2015/11/13 13:06:55, språng wrote: > As per discussion, now resetting entire send stream on ...
5 years, 1 month ago (2015-11-23 14:28:09 UTC) #23
sprang_webrtc
On 2015/11/23 14:28:09, mflodman wrote: > On 2015/11/13 13:06:55, språng wrote: > > As per ...
5 years, 1 month ago (2015-11-23 14:47:23 UTC) #24
sprang_webrtc
PING
5 years ago (2015-11-25 15:50:12 UTC) #25
pbos-webrtc
Magnus do you think this is an OK approach or should we enforce it in ...
5 years ago (2015-11-26 11:41:08 UTC) #26
sprang_webrtc
Ping mflodman
5 years ago (2015-12-01 13:22:30 UTC) #27
sprang_webrtc
+mflodman
5 years ago (2015-12-02 08:52:35 UTC) #29
mflodman
https://codereview.webrtc.org/1433393002/diff/100001/talk/media/webrtc/webrtcvideoengine2.cc File talk/media/webrtc/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1433393002/diff/100001/talk/media/webrtc/webrtcvideoengine2.cc#newcode2156 talk/media/webrtc/webrtcvideoengine2.cc:2156: RecreateWebRtcStream(); As I read the code, this will generate ...
5 years ago (2015-12-02 08:59:13 UTC) #30
mflodman
https://codereview.webrtc.org/1433393002/diff/100001/talk/media/webrtc/webrtcvideoengine2.cc File talk/media/webrtc/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1433393002/diff/100001/talk/media/webrtc/webrtcvideoengine2.cc#newcode2156 talk/media/webrtc/webrtcvideoengine2.cc:2156: RecreateWebRtcStream(); On 2015/12/02 08:59:13, mflodman wrote: > As I ...
5 years ago (2015-12-02 09:12:25 UTC) #31
sprang_webrtc
As per offline discussion, changed to reset stats internally in SendStatsProxy instead of resetting entire ...
5 years ago (2015-12-02 12:27:36 UTC) #32
mflodman
Thanks, I think this looks much better without resetting the entire video stream! I'd like ...
5 years ago (2015-12-02 14:07:54 UTC) #33
åsapersson
https://codereview.webrtc.org/1433393002/diff/120001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1433393002/diff/120001/webrtc/video/send_statistics_proxy.cc#newcode153 webrtc/video/send_statistics_proxy.cc:153: uma_container_->UpdateHistograms(); On 2015/12/02 14:07:54, mflodman wrote: > Åsa, > ...
5 years ago (2015-12-02 14:43:45 UTC) #34
sprang_webrtc
Peter, Åsa: any additional comments, or should I push this? https://codereview.webrtc.org/1433393002/diff/120001/webrtc/video/send_statistics_proxy.h File webrtc/video/send_statistics_proxy.h (right): https://codereview.webrtc.org/1433393002/diff/120001/webrtc/video/send_statistics_proxy.h#newcode43 ...
5 years ago (2015-12-03 10:26:30 UTC) #35
pbos-webrtc
lgtm with nits, but please remove UpdateHistograms to the uma dtor https://codereview.webrtc.org/1433393002/diff/160001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): ...
5 years ago (2015-12-03 13:22:33 UTC) #36
sprang_webrtc
https://codereview.webrtc.org/1433393002/diff/160001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1433393002/diff/160001/webrtc/video/send_statistics_proxy.cc#newcode41 webrtc/video/send_statistics_proxy.cc:41: RTC_NOTREACHED() << "Unknown content type."; On 2015/12/03 13:22:33, pbos-webrtc ...
5 years ago (2015-12-03 13:32:56 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1433393002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1433393002/180001
5 years ago (2015-12-03 13:33:04 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_rel/builds/11283)
5 years ago (2015-12-03 13:35:47 UTC) #42
pbos-webrtc
https://codereview.webrtc.org/1433393002/diff/180001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1433393002/diff/180001/webrtc/video/send_statistics_proxy.cc#newcode41 webrtc/video/send_statistics_proxy.cc:41: } Put RTC_NOTREACHED down here. It'll never happen still.
5 years ago (2015-12-03 13:37:40 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1433393002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1433393002/200001
5 years ago (2015-12-03 15:20:19 UTC) #46
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years ago (2015-12-03 16:10:12 UTC) #47
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/b4a1ae5299fd57be66c7cbb7a982179bb1ecfb90 Cr-Commit-Position: refs/heads/master@{#10885}
5 years ago (2015-12-03 16:10:18 UTC) #49
mflodman
https://codereview.webrtc.org/1433393002/diff/160001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1433393002/diff/160001/webrtc/video/send_statistics_proxy.cc#newcode81 webrtc/video/send_statistics_proxy.cc:81: uma_container_->UpdateHistograms(); On 2015/12/03 13:32:55, språng wrote: > On 2015/12/03 ...
5 years ago (2015-12-04 08:30:52 UTC) #50
pbos-webrtc
5 years ago (2015-12-04 13:49:40 UTC) #51
Message was sent while issue was closed.
On 2015/12/04 08:30:52, mflodman wrote:
>
https://codereview.webrtc.org/1433393002/diff/160001/webrtc/video/send_statis...
> File webrtc/video/send_statistics_proxy.cc (right):
> 
>
https://codereview.webrtc.org/1433393002/diff/160001/webrtc/video/send_statis...
> webrtc/video/send_statistics_proxy.cc:81: uma_container_->UpdateHistograms();
> On 2015/12/03 13:32:55, språng wrote:
> > On 2015/12/03 13:22:33, pbos-webrtc wrote:
> > > Maybe move this to the uma container dtor instead?
> > 
> > Done.
> 
> I don't agree about this.
> 
> We'll soon start calling UpdateHistograms multiple times during a call and I'd
> prefer to have this explicit in stats proxy class than implicit in uma
container
> class.

And completely remove it from the destructor? Otherwise I'd like to have it in
both ~UmaContainer and as a public method. WDYT?

Powered by Google App Engine
This is Rietveld 408576698