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

Issue 895903003: Adding UMA logging to touch text selection (Closed)

Created:
5 years, 10 months ago by mfomitchev
Modified:
5 years, 10 months ago
CC:
chromium-reviews, tfarina, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding UMA logging to touch text selection For the Aura path we log the duration of the selection sequence - from the the moment the text selection handles are brought up, and until their dismissal, and also whether the selection was "successful" or not, i.e. whether it ended with execution of one of the a command from the quick menu. For the Android path we only log the duration. BUG=NONE Committed: https://crrev.com/7e58cd2ca21f020e349893fbd310ade83cf27f47 Cr-Commit-Position: refs/heads/master@{#315894}

Patch Set 1 #

Patch Set 2 : Histograms.xml #

Total comments: 2

Patch Set 3 : Using CPU time instead of wallclock time. #

Total comments: 6

Patch Set 4 : Addressing feedback. #

Total comments: 2

Patch Set 5 : Renaming the metric logged for Clank to Event.TouchDragSelectionDuration. #

Patch Set 6 : Formatting #

Total comments: 5

Patch Set 7 : Min duration: 1ms -> 1000ms #

Total comments: 5

Patch Set 8 : Updating histogram names, updating enum type. #

Patch Set 9 : Changed duration's min to 500ms instead of 1000ms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -1 line) Patch
M tools/metrics/histograms/histograms.xml View 1 chunk +28 lines, -0 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.cc View 1 2 3 4 5 6 7 8 6 chunks +26 lines, -1 line 0 comments Download
M ui/views/touchui/touch_selection_controller_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/touchui/touch_selection_controller_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (7 generated)
mfomitchev
jdduke@chromium.org: Please review changes in ui/touch_selection mohsen@chromium.org: Please review changes in ui/views/touchui
5 years, 10 months ago (2015-02-05 20:57:52 UTC) #2
jdduke (slow)
https://codereview.chromium.org/895903003/diff/20001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/895903003/diff/20001/ui/touch_selection/touch_selection_controller.cc#newcode455 ui/touch_selection/touch_selection_controller.cc:455: base::TimeDelta duration = base::Time::Now() - selection_start_time_; Shouldn't we be ...
5 years, 10 months ago (2015-02-05 21:00:29 UTC) #3
mfomitchev
https://codereview.chromium.org/895903003/diff/20001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/895903003/diff/20001/ui/touch_selection/touch_selection_controller.cc#newcode455 ui/touch_selection/touch_selection_controller.cc:455: base::TimeDelta duration = base::Time::Now() - selection_start_time_; Good point. Fixed.
5 years, 10 months ago (2015-02-05 21:28:31 UTC) #4
mfomitchev
@jdduke, @mohsen: *poke*
5 years, 10 months ago (2015-02-09 16:00:43 UTC) #5
jdduke (slow)
https://codereview.chromium.org/895903003/diff/40001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/895903003/diff/40001/ui/touch_selection/touch_selection_controller.cc#newcode454 ui/touch_selection/touch_selection_controller.cc:454: void TouchSelectionController::LogSelectionEnd() { Hmm, on second thought, if this ...
5 years, 10 months ago (2015-02-09 16:10:56 UTC) #6
mfomitchev
https://codereview.chromium.org/895903003/diff/40001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/895903003/diff/40001/ui/touch_selection/touch_selection_controller.cc#newcode454 ui/touch_selection/touch_selection_controller.cc:454: void TouchSelectionController::LogSelectionEnd() { My hope is that getting this ...
5 years, 10 months ago (2015-02-09 17:09:32 UTC) #7
mohsen
ui/views/touchui LGTM
5 years, 10 months ago (2015-02-09 19:18:07 UTC) #8
jdduke (slow)
https://codereview.chromium.org/895903003/diff/60001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/895903003/diff/60001/ui/touch_selection/touch_selection_controller.cc#newcode465 ui/touch_selection/touch_selection_controller.cc:465: if (selection_handle_dragged_) { I was thinking we'd only log ...
5 years, 10 months ago (2015-02-09 19:24:48 UTC) #9
mfomitchev
https://codereview.chromium.org/895903003/diff/60001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/895903003/diff/60001/ui/touch_selection/touch_selection_controller.cc#newcode465 ui/touch_selection/touch_selection_controller.cc:465: if (selection_handle_dragged_) { I don't like logging individual drags ...
5 years, 10 months ago (2015-02-09 19:39:26 UTC) #10
jdduke (slow)
On 2015/02/09 19:39:26, mfomitchev wrote: > https://codereview.chromium.org/895903003/diff/60001/ui/touch_selection/touch_selection_controller.cc > File ui/touch_selection/touch_selection_controller.cc (right): > > https://codereview.chromium.org/895903003/diff/60001/ui/touch_selection/touch_selection_controller.cc#newcode465 > ...
5 years, 10 months ago (2015-02-09 19:44:59 UTC) #11
mfomitchev
> Yeah, if they have different semantics lets call it something different, and > ideally ...
5 years, 10 months ago (2015-02-09 22:03:08 UTC) #13
jdduke (slow)
lgtm with a couple questions. Just know that dev/canary channels are so sparse that it ...
5 years, 10 months ago (2015-02-10 17:50:25 UTC) #14
jdduke (slow)
+rbyers@ as FYI, I can be a UMA cynic so I'm not always the best ...
5 years, 10 months ago (2015-02-10 17:51:06 UTC) #15
mfomitchev
> Just know that dev/canary channels are so sparse > that it can take a ...
5 years, 10 months ago (2015-02-10 19:05:23 UTC) #17
mfomitchev
asvitkine@chromium.org: Please review changes in histograms.xml
5 years, 10 months ago (2015-02-10 19:07:09 UTC) #19
jdduke (slow)
https://codereview.chromium.org/895903003/diff/100001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/895903003/diff/100001/ui/touch_selection/touch_selection_controller.cc#newcode468 ui/touch_selection/touch_selection_controller.cc:468: 50); On 2015/02/10 19:05:23, mfomitchev wrote: > That's a ...
5 years, 10 months ago (2015-02-10 19:08:05 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/895903003/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/895903003/diff/120001/tools/metrics/histograms/histograms.xml#newcode7325 tools/metrics/histograms/histograms.xml:7325: +<histogram name="Event.TouchSelectionEndedWithAction" enum="BooleanEnabled"> This doesn't sound like BooleanEnabled. Is ...
5 years, 10 months ago (2015-02-10 22:23:04 UTC) #21
jdduke (slow)
https://codereview.chromium.org/895903003/diff/120001/ui/views/touchui/touch_selection_controller_impl.cc File ui/views/touchui/touch_selection_controller_impl.cc (right): https://codereview.chromium.org/895903003/diff/120001/ui/views/touchui/touch_selection_controller_impl.cc#newcode608 ui/views/touchui/touch_selection_controller_impl.cc:608: base::TimeDelta::FromMilliseconds(1000), On 2015/02/10 22:23:04, Alexei Svitkine wrote: > Could ...
5 years, 10 months ago (2015-02-10 22:29:00 UTC) #22
mfomitchev
https://codereview.chromium.org/895903003/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/895903003/diff/120001/tools/metrics/histograms/histograms.xml#newcode7325 tools/metrics/histograms/histograms.xml:7325: +<histogram name="Event.TouchSelectionEndedWithAction" enum="BooleanEnabled"> On 2015/02/10 22:23:04, Alexei Svitkine wrote: ...
5 years, 10 months ago (2015-02-10 23:22:54 UTC) #23
mfomitchev
On 2015/02/10 23:22:54, mfomitchev wrote: > https://codereview.chromium.org/895903003/diff/120001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/895903003/diff/120001/tools/metrics/histograms/histograms.xml#newcode7325 > ...
5 years, 10 months ago (2015-02-10 23:24:27 UTC) #24
mfomitchev
asvitkine: Can you please take another look?
5 years, 10 months ago (2015-02-11 22:08:30 UTC) #25
Alexei Svitkine (slow)
lgtm
5 years, 10 months ago (2015-02-11 22:12:24 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/895903003/160001
5 years, 10 months ago (2015-02-11 23:37:26 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/895903003/160001
5 years, 10 months ago (2015-02-12 00:04:30 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 10 months ago (2015-02-12 00:56:57 UTC) #32
commit-bot: I haz the power
5 years, 10 months ago (2015-02-12 00:57:51 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7e58cd2ca21f020e349893fbd310ade83cf27f47
Cr-Commit-Position: refs/heads/master@{#315894}

Powered by Google App Engine
This is Rietveld 408576698