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

Issue 2631993002: Media Remoting: UMAs to track session events and measurements. (Closed)

Created:
3 years, 11 months ago by miu
Modified:
3 years, 11 months ago
Reviewers:
xjz, Steven Holte
CC:
chromium-reviews, asvitkine+watch_chromium.org, chromoting-reviews_chromium.org, feature-media-reviews_chromium.org, apacible+watch_chromium.org, xjz+watch_chromium.org, erickung+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Remoting: UMAs to track session events and measurements. Adds metrics that track when sessions start and stop, and why; and how long they lasted; and coarsely-grained stats about codecs/profiles that were being used. This will help us track that the system is performing as expected in upcoming trials. This change also added a lot of missing error-reporting structure, to properly account for all possible start and end triggers throughout the implementation. In some places, small tweaks to shutdown-on-error logic were made. Furthermore, a minor change to the fullscreen exit control logic was made (since the histograms revealed a subtle flaw that would prevent exiting remoting in some cases where the user's action requested it). BUG=643964 TEST=Manual testing of several different media remoting scenarios, and checking chrome://histograms to confirm correct measurement values and event tracking. Review-Url: https://codereview.chromium.org/2631993002 Cr-Commit-Position: refs/heads/master@{#444230} Committed: https://chromium.googlesource.com/chromium/src/+/5949e051331c74dc1bc140b609a785e491858dd4

Patch Set 1 #

Total comments: 38

Patch Set 2 : Fixes per 1st round comments from xjz and holte. #

Total comments: 4

Patch Set 3 : nits from xjz before commit #

Patch Set 4 : REBASE before commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1007 lines, -141 lines) Patch
M media/remoting/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A media/remoting/metrics.h View 1 chunk +107 lines, -0 lines 0 comments Download
A media/remoting/metrics.cc View 1 1 chunk +240 lines, -0 lines 0 comments Download
M media/remoting/proto/remoting_rpc_message.proto View 14 chunks +30 lines, -14 lines 0 comments Download
M media/remoting/remote_demuxer_stream_adapter.h View 8 chunks +23 lines, -3 lines 0 comments Download
M media/remoting/remote_demuxer_stream_adapter.cc View 13 chunks +25 lines, -24 lines 0 comments Download
M media/remoting/remote_demuxer_stream_adapter_unittest.cc View 5 chunks +49 lines, -2 lines 0 comments Download
M media/remoting/remote_renderer_impl.h View 3 chunks +18 lines, -6 lines 0 comments Download
M media/remoting/remote_renderer_impl.cc View 24 chunks +133 lines, -53 lines 0 comments Download
M media/remoting/remote_renderer_impl_unittest.cc View 4 chunks +14 lines, -9 lines 0 comments Download
M media/remoting/remoting_renderer_controller.h View 1 7 chunks +30 lines, -10 lines 0 comments Download
M media/remoting/remoting_renderer_controller.cc View 1 2 16 chunks +96 lines, -19 lines 0 comments Download
M media/remoting/remoting_source_impl.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
A media/remoting/triggers.h View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +157 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
miu
holte: histograms.xml RS please. xjz: PTAL.
3 years, 11 months ago (2017-01-15 02:11:09 UTC) #4
xjz
Looks great! Some nits. https://codereview.chromium.org/2631993002/diff/20001/media/remoting/metrics.cc File media/remoting/metrics.cc (right): https://codereview.chromium.org/2631993002/diff/20001/media/remoting/metrics.cc#newcode93 media/remoting/metrics.cc:93: // Record the session duration. ...
3 years, 11 months ago (2017-01-17 05:36:26 UTC) #14
Steven Holte
https://codereview.chromium.org/2631993002/diff/20001/media/remoting/metrics.cc File media/remoting/metrics.cc (right): https://codereview.chromium.org/2631993002/diff/20001/media/remoting/metrics.cc#newcode34 media/remoting/metrics.cc:34: name, This macro uses a static pointer, so you ...
3 years, 11 months ago (2017-01-17 19:40:12 UTC) #15
miu
xjz and holte: Thanks for the quick turnaround. Addressed all comments. PTAL. https://codereview.chromium.org/2631993002/diff/20001/media/remoting/metrics.cc File media/remoting/metrics.cc ...
3 years, 11 months ago (2017-01-17 21:09:26 UTC) #16
Steven Holte
histograms lgtm
3 years, 11 months ago (2017-01-17 21:36:22 UTC) #17
xjz
lgtm % nits https://codereview.chromium.org/2631993002/diff/20001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2631993002/diff/20001/media/remoting/remoting_renderer_controller.cc#newcode54 media/remoting/remoting_renderer_controller.cc:54: UpdateAndMaybeSwitch(remoting::SINK_AVAILABLE, remoting::ROUTE_TERMINATED); On 2017/01/17 21:09:18, miu ...
3 years, 11 months ago (2017-01-17 21:52:04 UTC) #18
miu
https://codereview.chromium.org/2631993002/diff/20001/media/remoting/remoting_renderer_controller.cc File media/remoting/remoting_renderer_controller.cc (right): https://codereview.chromium.org/2631993002/diff/20001/media/remoting/remoting_renderer_controller.cc#newcode54 media/remoting/remoting_renderer_controller.cc:54: UpdateAndMaybeSwitch(remoting::SINK_AVAILABLE, remoting::ROUTE_TERMINATED); On 2017/01/17 21:52:04, xjz wrote: > On ...
3 years, 11 months ago (2017-01-17 22:46:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2631993002/80001
3 years, 11 months ago (2017-01-17 22:48:49 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 01:34:40 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/5949e051331c74dc1bc140b609a7...

Powered by Google App Engine
This is Rietveld 408576698