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

Issue 1256793012: bluetooth: Add histogram for WebBluetooth actions (Closed)

Created:
5 years, 4 months ago by ortuno
Modified:
5 years, 4 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Add histogram for WebBluetooth actions This will let us know how to better allocate resources when polishing the API BUG=499636 Committed: https://crrev.com/eb2ba9ab7627093f3ef01a3b7cdf44be9bd8ee6c Cr-Commit-Position: refs/heads/master@{#341772}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Change back to histograms #

Patch Set 4 : Reorder function #

Total comments: 10

Patch Set 5 : Change enum name, reorder functions #

Patch Set 6 : WebBluetooth -> Bluetooth.Web #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -1 line) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 8 chunks +30 lines, -1 line 2 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (8 generated)
ortuno
@jyasskin: PTAL
5 years, 4 months ago (2015-07-31 20:07:56 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256793012/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256793012/20001
5 years, 4 months ago (2015-08-03 17:33:35 UTC) #4
Jeffrey Yasskin
IIUC, this records calls to each of the Web Bluetooth API functions, but doesn't (yet?) ...
5 years, 4 months ago (2015-08-03 17:47:34 UTC) #5
scheib
I think RecordAction is designed more for actions users take on Chrome UI surface. I ...
5 years, 4 months ago (2015-08-03 18:24:13 UTC) #7
ortuno
On 2015/08/03 at 17:47:34, jyasskin wrote: > IIUC, this records calls to each of the ...
5 years, 4 months ago (2015-08-03 18:25:40 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-03 18:31:19 UTC) #10
ortuno
@asvitkine: We want to record calls to each of the Web Bluetooth API functions. Do ...
5 years, 4 months ago (2015-08-03 20:19:53 UTC) #12
Alexei Svitkine (slow)
An enumerated histogram would be better. These are not actions directly triggered by the user ...
5 years, 4 months ago (2015-08-03 20:23:02 UTC) #13
ortuno
@asvitkine: Thanks! I changed it back to histograms. I will ping when it's ready for ...
5 years, 4 months ago (2015-08-03 20:48:43 UTC) #15
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1256793012/diff/70001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1256793012/diff/70001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode58 content/browser/bluetooth/bluetooth_dispatcher_host.cc:58: enum class UMAWebBluetoothFunction { Maybe put these right ...
5 years, 4 months ago (2015-08-03 21:51:13 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/1256793012/diff/70001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1256793012/diff/70001/tools/metrics/histograms/histograms.xml#newcode48307 tools/metrics/histograms/histograms.xml:48307: +<histogram name="WebBluetooth.FunctionCall.Count" enum="WebBluetoothFunction"> I suggest not introducing a new ...
5 years, 4 months ago (2015-08-03 21:59:06 UTC) #17
ortuno
https://codereview.chromium.org/1256793012/diff/70001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1256793012/diff/70001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode58 content/browser/bluetooth/bluetooth_dispatcher_host.cc:58: enum class UMAWebBluetoothFunction { On 2015/08/03 at 21:51:13, Jeffrey ...
5 years, 4 months ago (2015-08-03 22:41:17 UTC) #18
Alexei Svitkine (slow)
lgtm % comment https://codereview.chromium.org/1256793012/diff/70001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1256793012/diff/70001/tools/metrics/histograms/histograms.xml#newcode48307 tools/metrics/histograms/histograms.xml:48307: +<histogram name="WebBluetooth.FunctionCall.Count" enum="WebBluetoothFunction"> On 2015/08/03 22:41:16, ...
5 years, 4 months ago (2015-08-04 15:35:03 UTC) #19
ortuno
@scheib: PTAL @asvitkine: Thanks! https://codereview.chromium.org/1256793012/diff/70001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1256793012/diff/70001/tools/metrics/histograms/histograms.xml#newcode48307 tools/metrics/histograms/histograms.xml:48307: +<histogram name="WebBluetooth.FunctionCall.Count" enum="WebBluetoothFunction"> On 2015/08/04 ...
5 years, 4 months ago (2015-08-04 16:01:19 UTC) #20
scheib
LGTM https://codereview.chromium.org/1256793012/diff/110001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1256793012/diff/110001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode77 content/browser/bluetooth/bluetooth_dispatcher_host.cc:77: UMA_HISTOGRAM_ENUMERATION("Bluetooth.Web.FunctionCall.Count", Bluetooth.Web.* LGTM ... we'll rename the others ...
5 years, 4 months ago (2015-08-04 18:30:22 UTC) #21
ortuno
https://codereview.chromium.org/1256793012/diff/110001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1256793012/diff/110001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode77 content/browser/bluetooth/bluetooth_dispatcher_host.cc:77: UMA_HISTOGRAM_ENUMERATION("Bluetooth.Web.FunctionCall.Count", On 2015/08/04 at 18:30:22, scheib wrote: > Bluetooth.Web.* ...
5 years, 4 months ago (2015-08-04 18:32:24 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256793012/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256793012/110001
5 years, 4 months ago (2015-08-04 18:33:57 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:110001)
5 years, 4 months ago (2015-08-04 19:57:12 UTC) #26
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 19:59:04 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/eb2ba9ab7627093f3ef01a3b7cdf44be9bd8ee6c
Cr-Commit-Position: refs/heads/master@{#341772}

Powered by Google App Engine
This is Rietveld 408576698