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

Issue 1305453002: Add UMA stats for Chromoting connection details. (Closed)

Created:
5 years, 4 months ago by anandc
Modified:
5 years, 4 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA stats for connection times and durations in the Chromoting plugin. Also add UMA counters for each connection-state in the web-app. BUG=502061 Committed: https://crrev.com/49b2fcd7c800c94961c5644b847639dabccdc7e7 Cr-Commit-Position: refs/heads/master@{#344930}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Add Chromoting actions to actions.xml. Fix durations calculations. #

Total comments: 10

Patch Set 3 : Change connection times and durations histogram names. Clean up histograms.xml. #

Patch Set 4 : Use enum histogram instead of user actions for connection states. #

Total comments: 14

Patch Set 5 : Include all SessionState enums in UMA enumerated-histogram. Cleanup plugin code. #

Total comments: 14

Patch Set 6 : Use only non-negative values for UMA enumerated histogram. #

Total comments: 8

Patch Set 7 : Include min and max enum in SessionState enum definition. #

Patch Set 8 : Rebase. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -3 lines) Patch
M remoting/client/plugin/chromoting_instance.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 3 4 2 chunks +70 lines, -0 lines 0 comments Download
M remoting/compile_js.gypi View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/webapp/base/js/client_session.js View 1 2 3 4 5 6 7 3 chunks +39 lines, -1 line 1 comment Download
M remoting/webapp/js_proto/chrome_mocks.js View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +54 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (19 generated)
anandc
Hi Sergey, PTAL. Thank you.
5 years, 4 months ago (2015-08-20 00:51:34 UTC) #5
Sergey Ulanov
https://codereview.chromium.org/1305453002/diff/60001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1305453002/diff/60001/remoting/client/plugin/chromoting_instance.cc#newcode418 remoting/client/plugin/chromoting_instance.cc:418: (base::Time::Now() - connection_connected_).InMilliseconds(), connection_connected_ is set only if the ...
5 years, 4 months ago (2015-08-20 21:05:19 UTC) #6
anandc
Thanks Sergey. PTAL at patch-set #2. +isherman@ for review of histograms.xml and actions.xml. https://codereview.chromium.org/1305453002/diff/60001/remoting/client/plugin/chromoting_instance.cc File ...
5 years, 4 months ago (2015-08-20 23:12:01 UTC) #8
kelvinp
https://codereview.chromium.org/1305453002/diff/80001/remoting/webapp/base/js/client_session.js File remoting/webapp/base/js/client_session.js (right): https://codereview.chromium.org/1305453002/diff/80001/remoting/webapp/base/js/client_session.js#newcode584 remoting/webapp/base/js/client_session.js:584: chrome.metricsPrivate.recordUserAction( I think this will break our unit tests, ...
5 years, 4 months ago (2015-08-20 23:21:23 UTC) #10
Ilya Sherman
https://codereview.chromium.org/1305453002/diff/80001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/1305453002/diff/80001/tools/metrics/actions/actions.xml#newcode2098 tools/metrics/actions/actions.xml:2098: </action> These don't seem like user actions. Have you ...
5 years, 4 months ago (2015-08-20 23:42:46 UTC) #11
anandc
Thanks Ilya and Kelvin. PTAL. https://codereview.chromium.org/1305453002/diff/80001/remoting/webapp/base/js/client_session.js File remoting/webapp/base/js/client_session.js (right): https://codereview.chromium.org/1305453002/diff/80001/remoting/webapp/base/js/client_session.js#newcode584 remoting/webapp/base/js/client_session.js:584: chrome.metricsPrivate.recordUserAction( On 2015/08/20 23:21:23, ...
5 years, 4 months ago (2015-08-21 03:15:42 UTC) #14
Ilya Sherman
Anand and I discussed out of band, and agreed that an enumerated histogram is probably ...
5 years, 4 months ago (2015-08-21 05:21:32 UTC) #15
anandc
Thanks Ilya. Please take a look at the latest patch-set. https://codereview.chromium.org/1305453002/diff/150001/remoting/webapp/base/js/client_session.js File remoting/webapp/base/js/client_session.js (right): https://codereview.chromium.org/1305453002/diff/150001/remoting/webapp/base/js/client_session.js#newcode587 ...
5 years, 4 months ago (2015-08-21 16:23:01 UTC) #16
kelvinp
I think you still need to update chrome mocks. https://codereview.chromium.org/1305453002/diff/150001/remoting/webapp/base/js/client_session.js File remoting/webapp/base/js/client_session.js (right): https://codereview.chromium.org/1305453002/diff/150001/remoting/webapp/base/js/client_session.js#newcode569 remoting/webapp/base/js/client_session.js:569: ...
5 years, 4 months ago (2015-08-21 16:29:24 UTC) #17
Sergey Ulanov
https://codereview.chromium.org/1305453002/diff/150001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1305453002/diff/150001/remoting/client/plugin/chromoting_instance.cc#newcode86 remoting/client/plugin/chromoting_instance.cc:86: const int kConnectionDurationHistogramBuckets = 50; Not sure if 50 ...
5 years, 4 months ago (2015-08-21 18:26:49 UTC) #18
anandc
Thanks Sergey & Kelvin. PTAL at latest patch-set. https://codereview.chromium.org/1305453002/diff/150001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1305453002/diff/150001/remoting/client/plugin/chromoting_instance.cc#newcode86 remoting/client/plugin/chromoting_instance.cc:86: const ...
5 years, 4 months ago (2015-08-21 18:56:56 UTC) #20
Ilya Sherman
https://codereview.chromium.org/1305453002/diff/190001/remoting/webapp/base/js/client_session.js File remoting/webapp/base/js/client_session.js (right): https://codereview.chromium.org/1305453002/diff/190001/remoting/webapp/base/js/client_session.js#newcode143 remoting/webapp/base/js/client_session.js:143: // Chromoting.Connections histogram. The 2 lists should be kept ...
5 years, 4 months ago (2015-08-21 19:48:30 UTC) #21
anandc
Thanks Ilya. PTAL. https://codereview.chromium.org/1305453002/diff/190001/remoting/webapp/base/js/client_session.js File remoting/webapp/base/js/client_session.js (right): https://codereview.chromium.org/1305453002/diff/190001/remoting/webapp/base/js/client_session.js#newcode143 remoting/webapp/base/js/client_session.js:143: // Chromoting.Connections histogram. The 2 lists ...
5 years, 4 months ago (2015-08-21 21:30:03 UTC) #26
kelvinp
https://codereview.chromium.org/1305453002/diff/190001/remoting/webapp/js_proto/chrome_mocks.js File remoting/webapp/js_proto/chrome_mocks.js (right): https://codereview.chromium.org/1305453002/diff/190001/remoting/webapp/js_proto/chrome_mocks.js#newcode251 remoting/webapp/js_proto/chrome_mocks.js:251: }; Nit: put }; on the same line with ...
5 years, 4 months ago (2015-08-21 21:32:10 UTC) #27
Ilya Sherman
Metrics LGTM % the remaining comments. If you wanted to follow up with a CL ...
5 years, 4 months ago (2015-08-21 21:39:48 UTC) #28
anandc
Thanks for the quick turnaround, Ilya and Kelvin. PS #7 addresses your latest comments. Re. ...
5 years, 4 months ago (2015-08-21 21:56:10 UTC) #30
kelvinp
lgtm
5 years, 4 months ago (2015-08-21 22:32:47 UTC) #31
Sergey Ulanov
lgtm
5 years, 4 months ago (2015-08-21 22:47:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305453002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305453002/320001
5 years, 4 months ago (2015-08-21 22:52:26 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/59347) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 4 months ago (2015-08-21 22:55:32 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305453002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305453002/340001
5 years, 4 months ago (2015-08-21 23:34:50 UTC) #40
commit-bot: I haz the power
Committed patchset #8 (id:340001)
5 years, 4 months ago (2015-08-22 00:22:30 UTC) #41
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/49b2fcd7c800c94961c5644b847639dabccdc7e7 Cr-Commit-Position: refs/heads/master@{#344930}
5 years, 4 months ago (2015-08-22 00:23:02 UTC) #42
Ilya Sherman
5 years, 4 months ago (2015-08-25 01:34:25 UTC) #43
Message was sent while issue was closed.
https://codereview.chromium.org/1305453002/diff/340001/remoting/webapp/base/j...
File remoting/webapp/base/js/client_session.js (right):

https://codereview.chromium.org/1305453002/diff/340001/remoting/webapp/base/j...
remoting/webapp/base/js/client_session.js:570:
remoting.ClientSession.State.MIN_STATE_ENUM);
I'm pretty sure you're missing a "+1" in this computation :(

Powered by Google App Engine
This is Rietveld 408576698