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

Issue 10826247: ash: Add some more touch UMA. (Closed)

Created:
8 years, 4 months ago by sadrul
Modified:
8 years, 4 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

ash: Add some more touch UMA. BUG=138846 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151117

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -0 lines) Patch
M ash/touch/touch_uma.cc View 1 2 3 3 chunks +53 lines, -0 lines 10 comments Download

Messages

Total messages: 7 (0 generated)
sadrul
rbyers@ Please review isherman@ Please review that the usage of STATIC_HISTOGRAM_POINTER_BLOCK is correct. http://codereview.chromium.org/10826247/diff/3/ash/touch/touch_uma.cc File ...
8 years, 4 months ago (2012-08-10 15:54:42 UTC) #1
Rick Byers
lgtm, thanks! http://codereview.chromium.org/10826247/diff/3/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): http://codereview.chromium.org/10826247/diff/3/ash/touch/touch_uma.cc#newcode275 ash/touch/touch_uma.cc:275: STATIC_HISTOGRAM_POINTER_BLOCK("Ash.TouchPositionX", Too bad there's not a linear ...
8 years, 4 months ago (2012-08-10 18:07:09 UTC) #2
sadrul
+sky
8 years, 4 months ago (2012-08-10 18:57:33 UTC) #3
sky
LGTM with the following change. http://codereview.chromium.org/10826247/diff/8001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): http://codereview.chromium.org/10826247/diff/8001/ash/touch/touch_uma.cc#newcode278 ash/touch/touch_uma.cc:278: const int kBucketSizeX = ...
8 years, 4 months ago (2012-08-10 19:18:33 UTC) #4
sadrul
http://codereview.chromium.org/10826247/diff/8001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): http://codereview.chromium.org/10826247/diff/8001/ash/touch/touch_uma.cc#newcode278 ash/touch/touch_uma.cc:278: const int kBucketSizeX = bounds.width() / kBucketCount; On 2012/08/10 ...
8 years, 4 months ago (2012-08-10 19:20:24 UTC) #5
Ilya Sherman
Thanks for including me on this review -- histograms can be a little subtle... http://codereview.chromium.org/10826247/diff/4003/ash/touch/touch_uma.cc ...
8 years, 4 months ago (2012-08-13 22:22:41 UTC) #6
sadrul
8 years, 4 months ago (2012-08-14 05:21:32 UTC) #7
Addressed the comments in http://codereview.chromium.org/10831303/

http://codereview.chromium.org/10826247/diff/4003/ash/touch/touch_uma.cc
File ash/touch/touch_uma.cc (right):

http://codereview.chromium.org/10826247/diff/4003/ash/touch/touch_uma.cc#newc...
ash/touch/touch_uma.cc:276: const int kBucketCount = 100;
On 2012/08/13 22:22:42, Ilya Sherman wrote:
> Optional nit: Since you have another histogram further down in this method
that
> uses a different bucket count, perhaps name this more clearly to describe what
> histogram's buckets this is counting?

Done.

http://codereview.chromium.org/10826247/diff/4003/ash/touch/touch_uma.cc#newc...
ash/touch/touch_uma.cc:309:
base::LinearHistogram::FactoryGet("Ash.TouchPositionX", 1, kBucketCount,
On 2012/08/13 22:22:42, Ilya Sherman wrote:
> Optional nit: Since logging a sample of "0" seems reachable, I think it would
be
> slightly clearer to declare the lower bound to be 0 rather than 1.

Done.

http://codereview.chromium.org/10826247/diff/4003/ash/touch/touch_uma.cc#newc...
ash/touch/touch_uma.cc:340: kMaxTouchPoints),
On 2012/08/13 22:22:42, Ilya Sherman wrote:
> nit: No need for the std::min; all samples above the maximum will just fall
into
> an overflow bucket.

Done.

http://codereview.chromium.org/10826247/diff/4003/ash/touch/touch_uma.cc#newc...
ash/touch/touch_uma.cc:341: 1, kMaxTouchPoints, kMaxTouchPoints);
On 2012/08/13 22:22:42, Ilya Sherman wrote:
> nit: The bucket count should be kMaxTouchPoints + 1 -- you want to have
buckets
> from 0 through kMaxTouchPoints, with the last one serving as the overflow
> bucket.

Done.

Powered by Google App Engine
This is Rietveld 408576698