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

Issue 213433003: Add Sparse Histogram Support to metricsPrivate (Closed)

Created:
6 years, 9 months ago by robliao
Modified:
6 years, 9 months ago
CC:
skare_, rgustafson, chromium-reviews, chromium-apps-reviews_chromium.org, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Add Sparse Histogram Support to metricsPrivate BUG=356820 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259793

Patch Set 1 #

Patch Set 2 : Fix Typo #

Total comments: 14

Patch Set 3 : CR Feedback #

Total comments: 4

Patch Set 4 : CR Feedback #

Total comments: 16

Patch Set 5 : CR Feedback #

Total comments: 6

Patch Set 6 : CR Feedback #

Total comments: 2

Patch Set 7 : Style and Unsigned/Signed Compare #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -5 lines) Patch
M chrome/browser/extensions/api/metrics_private/metrics_apitest.cc View 1 2 3 4 5 6 4 chunks +42 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/metrics_private/metrics_private_api.h View 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/metrics_private/metrics_private_api.cc View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/metrics_private.json View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/metrics/test.js View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
robliao
Reviewers: Please review changes in the following files. Thanks! isherman: chrome/browser/extensions/api/metrics_private/metrics_apitest.cc chrome/browser/extensions/api/metrics_private/metrics_private_api.h chrome/browser/extensions/api/metrics_private/metrics_private_api.cc tools/metrics/histograms/histograms.xml kalman: ...
6 years, 9 months ago (2014-03-26 20:34:18 UTC) #1
robliao
Fix a quick typo
6 years, 9 months ago (2014-03-26 20:35:49 UTC) #2
not at google - send to devlin
lgtm https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode127 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:127: } you could EXPECT_EQ(r.type == base::HISTOGRAM, histogram->HasConstructionArguments(r.min, r.max, ...
6 years, 9 months ago (2014-03-26 20:39:44 UTC) #3
robliao
https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode127 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:127: } While true, that seems to be a bit ...
6 years, 9 months ago (2014-03-26 21:15:42 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode127 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:127: } On 2014/03/26 21:15:43, robliao wrote: > While true, ...
6 years, 9 months ago (2014-03-26 21:19:35 UTC) #5
robliao
On 2014/03/26 21:19:35, kalman wrote: > https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc > File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): > > https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode127 > ...
6 years, 9 months ago (2014-03-26 21:30:23 UTC) #6
Ilya Sherman
https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode42 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:42: {"test.sparse.2", base::SPARSE_HISTOGRAM, 0, 0, 0, 2}, Where are you ...
6 years, 9 months ago (2014-03-26 22:02:03 UTC) #7
robliao
https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode42 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:42: {"test.sparse.2", base::SPARSE_HISTOGRAM, 0, 0, 0, 2}, Can't really do ...
6 years, 9 months ago (2014-03-26 22:30:50 UTC) #8
Ilya Sherman
https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode42 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:42: {"test.sparse.2", base::SPARSE_HISTOGRAM, 0, 0, 0, 2}, You're already extracting ...
6 years, 9 months ago (2014-03-26 22:44:14 UTC) #9
robliao
CR Feedback and adding skare@ and rgustafson@ as FYI. https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc File chrome/browser/extensions/api/metrics_private/metrics_private_api.cc (right): https://codereview.chromium.org/213433003/diff/20001/chrome/browser/extensions/api/metrics_private/metrics_private_api.cc#newcode136 chrome/browser/extensions/api/metrics_private/metrics_private_api.cc:136: ...
6 years, 9 months ago (2014-03-26 23:37:54 UTC) #10
Ilya Sherman
Thanks! Lots of little nits, but otherwise LG. https://codereview.chromium.org/213433003/diff/60001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/60001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode55 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:55: int ...
6 years, 9 months ago (2014-03-26 23:52:13 UTC) #11
robliao
https://codereview.chromium.org/213433003/diff/60001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/60001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode55 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:55: int histogramValue; On 2014/03/26 23:52:13, Ilya Sherman wrote: > ...
6 years, 9 months ago (2014-03-27 00:02:44 UTC) #12
Ilya Sherman
LGTM with the remaining nits addressed. Thanks for shaving this yak! https://codereview.chromium.org/213433003/diff/60001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): ...
6 years, 9 months ago (2014-03-27 00:08:15 UTC) #13
robliao
https://codereview.chromium.org/213433003/diff/60001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/60001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode126 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:126: if (name == sparse_histogram.name) { I was thinking that, ...
6 years, 9 months ago (2014-03-27 00:21:52 UTC) #14
robliao
The CQ bit was checked by robliao@chromium.org
6 years, 9 months ago (2014-03-27 00:22:07 UTC) #15
Ilya Sherman
https://codereview.chromium.org/213433003/diff/100001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/100001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode157 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:157: ValidateSparseHistogramSamples(r.name, *(snapshot.get())); nit: *(snapshot.get()) -> *snapshot
6 years, 9 months ago (2014-03-27 00:25:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/213433003/100001
6 years, 9 months ago (2014-03-27 00:34:22 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 01:35:54 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-27 01:35:55 UTC) #19
robliao
The CQ bit was checked by robliao@chromium.org
6 years, 9 months ago (2014-03-27 03:21:32 UTC) #20
robliao
Style and Unsigned/Signed Compare https://codereview.chromium.org/213433003/diff/100001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc File chrome/browser/extensions/api/metrics_private/metrics_apitest.cc (right): https://codereview.chromium.org/213433003/diff/100001/chrome/browser/extensions/api/metrics_private/metrics_apitest.cc#newcode157 chrome/browser/extensions/api/metrics_private/metrics_apitest.cc:157: ValidateSparseHistogramSamples(r.name, *(snapshot.get())); On 2014/03/27 00:25:34, ...
6 years, 9 months ago (2014-03-27 03:21:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/213433003/140001
6 years, 9 months ago (2014-03-27 03:22:34 UTC) #22
commit-bot: I haz the power
6 years, 9 months ago (2014-03-27 05:33:08 UTC) #23
Message was sent while issue was closed.
Change committed as 259793

Powered by Google App Engine
This is Rietveld 408576698