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

Issue 379283002: Rework UMAHistogramHelper and StatisticsDeltaReader into [Chrome]HistogramTester. (Closed)

Created:
6 years, 5 months ago by Mike Lerman
Modified:
6 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, rouslan+spellwatch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, mkwst+watchlist_chromium.org, samarth+watch_chromium.org, tfarina, groby+spellwatch_chromium.org, kmadhusu+watch_chromium.org, gcasto+watchlist_chromium.org, erikwright+watch_chromium.org, rpetterson, Jered
Project:
chromium
Visibility:
Public.

Description

Rework UMAHistogramHelper and StatisticsDeltaReader into [Chrome]HistogramTester. Design Doc (Googlers Only): https://docs.google.com/a/google.com/document/d/1RUY0BcxBppdkwFP3T8qbQmQStBRFGsLmuR4WuIXhiCA/edit BUG=384011 TBR=timsteele@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291207

Patch Set 1 #

Patch Set 2 : New histogram tests in place across all tests #

Patch Set 3 : Rebase #

Patch Set 4 : Rename tester unittest class #

Patch Set 5 : remove statistics_delta_reader_reference #

Patch Set 6 : SpellcheckHostMetricsUnittest fix #

Patch Set 7 : Update NetErrorHelperCote unittest #

Patch Set 8 : Fix SpellcheckHostmetricsTest #

Patch Set 9 : Try Removing MessageLoop from Fetch #

Patch Set 10 : Fix NetErrorHelperCore test (still no messageLoop) #

Patch Set 11 : Prefer base histogram_tester. ChromeHistogramTester with RunMessageLoop for NaCl #

Total comments: 60

Patch Set 12 : Ilya's initial comments #

Total comments: 13

Patch Set 13 : Comments and consts #

Patch Set 14 : Git cl format #

Total comments: 12

Patch Set 15 : Remove the ChromeHistogramHelper #

Total comments: 4

Patch Set 16 : Function rename; use std map find #

Total comments: 6

Patch Set 17 : mmenke nits #

Total comments: 8

Patch Set 18 : msw nits #

Total comments: 3

Patch Set 19 : Rebase #

Patch Set 20 : Change fetch histogram timeout for nacl test #

Patch Set 21 : HistogramTesterTestTe #

Patch Set 22 : ChromeOS tests #

Total comments: 1

Patch Set 23 : Fix unit tests #

Patch Set 24 : Rebase #

Patch Set 25 : Rebase #

Patch Set 26 : Change histogram on unit tests for ios #

Patch Set 27 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -817 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +3 lines, -3 lines 0 comments Download
M base/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
A base/test/histogram_tester.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +81 lines, -0 lines 0 comments Download
A base/test/histogram_tester.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +122 lines, -0 lines 0 comments Download
A base/test/histogram_tester_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +81 lines, -0 lines 0 comments Download
D base/test/statistics_delta_reader.h View 1 chunk +0 lines, -45 lines 0 comments Download
D base/test/statistics_delta_reader.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M base/test/statistics_delta_reader_unittest.cc View 1 2 3 1 chunk +0 lines, -34 lines 0 comments Download
M chrome/browser/accessibility/browser_accessibility_state_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/external_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 17 chunks +77 lines, -76 lines 0 comments Download
M chrome/browser/signin/account_reconcilor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 14 chunks +26 lines, -45 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +23 lines, -43 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/password_generation_bubble_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +18 lines, -38 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 10 chunks +38 lines, -122 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_view_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_view_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/net/net_error_helper_core_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +48 lines, -89 lines 0 comments Download
D chrome/test/base/uma_histogram_helper.h View 1 chunk +0 lines, -74 lines 0 comments Download
D chrome/test/base/uma_histogram_helper.cc View 1 chunk +0 lines, -127 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest_uma.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 8 chunks +13 lines, -14 lines 0 comments Download
M components/suggestions/blacklist_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +10 lines, -14 lines 0 comments Download
M content/public/test/browser_test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +16 lines, -0 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +11 lines, -10 lines 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
Mike Lerman
Hi Ilya, I'm reading to start getting this reviewed. Let me know if you have ...
6 years, 5 months ago (2014-07-14 17:03:59 UTC) #1
Mike Lerman
Phajdan, I'll also get you to review at this stage, before I send these changes ...
6 years, 5 months ago (2014-07-14 18:45:23 UTC) #2
Ilya Sherman
Thanks, Mike! This is very welcome cleanup :) https://codereview.chromium.org/379283002/diff/300001/base/test/histogram_tester.h File base/test/histogram_tester.h (right): https://codereview.chromium.org/379283002/diff/300001/base/test/histogram_tester.h#newcode21 base/test/histogram_tester.h:21: // ...
6 years, 5 months ago (2014-07-15 03:56:36 UTC) #3
Mike Lerman
https://codereview.chromium.org/379283002/diff/300001/base/test/histogram_tester.h File base/test/histogram_tester.h (right): https://codereview.chromium.org/379283002/diff/300001/base/test/histogram_tester.h#newcode21 base/test/histogram_tester.h:21: // or otherwise. Tests can use this interface to ...
6 years, 5 months ago (2014-07-16 17:29:04 UTC) #4
Ilya Sherman
Thanks, Mike! https://codereview.chromium.org/379283002/diff/300001/chrome/browser/search/suggestions/blacklist_store_unittest.cc File chrome/browser/search/suggestions/blacklist_store_unittest.cc (right): https://codereview.chromium.org/379283002/diff/300001/chrome/browser/search/suggestions/blacklist_store_unittest.cc#newcode144 chrome/browser/search/suggestions/blacklist_store_unittest.cc:144: histogram_tester.ExpectBucketCount("Suggestions.LocalBlacklistSize", 2, 1); On 2014/07/16 17:29:03, Mike ...
6 years, 5 months ago (2014-07-16 18:44:47 UTC) #5
Mike Lerman
https://codereview.chromium.org/379283002/diff/300001/chrome/browser/search/suggestions/blacklist_store_unittest.cc File chrome/browser/search/suggestions/blacklist_store_unittest.cc (right): https://codereview.chromium.org/379283002/diff/300001/chrome/browser/search/suggestions/blacklist_store_unittest.cc#newcode144 chrome/browser/search/suggestions/blacklist_store_unittest.cc:144: histogram_tester.ExpectBucketCount("Suggestions.LocalBlacklistSize", 2, 1); On 2014/07/16 18:44:46, Ilya Sherman wrote: ...
6 years, 5 months ago (2014-07-16 19:36:36 UTC) #6
Ilya Sherman
https://codereview.chromium.org/379283002/diff/340001/chrome/test/base/chrome_histogram_tester.h File chrome/test/base/chrome_histogram_tester.h (right): https://codereview.chromium.org/379283002/diff/340001/chrome/test/base/chrome_histogram_tester.h#newcode12 chrome/test/base/chrome_histogram_tester.h:12: // histogram tests. On 2014/07/16 19:36:36, Mike Lerman wrote: ...
6 years, 5 months ago (2014-07-16 20:01:13 UTC) #7
Mike Lerman
https://codereview.chromium.org/379283002/diff/380001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/379283002/diff/380001/base/test/histogram_tester.cc#newcode96 base/test/histogram_tester.cc:96: actual_count -= histograms_snapshot_.at(name)->GetCount(sample); On 2014/07/16 20:01:12, Ilya Sherman wrote: ...
6 years, 5 months ago (2014-07-17 15:04:18 UTC) #8
Ilya Sherman
Thanks, Mike! LGTM % the remaining comments. https://codereview.chromium.org/379283002/diff/380001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/379283002/diff/380001/base/test/histogram_tester.cc#newcode96 base/test/histogram_tester.cc:96: actual_count -= ...
6 years, 5 months ago (2014-07-17 18:35:09 UTC) #9
Mike Lerman
Thanks Ilya, sending this out for wider review. Implemented use of std::map::find as well. https://codereview.chromium.org/379283002/diff/400001/content/public/test/browser_test_utils.cc ...
6 years, 5 months ago (2014-07-18 13:58:24 UTC) #10
Mike Lerman
Hello Owners, Sending this out to review all the unit tests. ttuttle - /c/renderer/net, net/* ...
6 years, 5 months ago (2014-07-18 14:11:17 UTC) #11
Deprecated (see juliatuttle)
On 2014/07/18 14:11:17, Mike Lerman wrote: > Hello Owners, > > Sending this out to ...
6 years, 5 months ago (2014-07-18 14:17:06 UTC) #12
mmenke
prerender/ LGTM https://codereview.chromium.org/379283002/diff/420001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): https://codereview.chromium.org/379283002/diff/420001/chrome/browser/prerender/prerender_browsertest.cc#newcode1510 chrome/browser/prerender/prerender_browsertest.cc:1510: const base::HistogramTester& histogram_tester() { return histograms_; } ...
6 years, 5 months ago (2014-07-18 14:53:39 UTC) #13
Scott Hess - ex-Googler
lgtm for cocoa/
6 years, 5 months ago (2014-07-18 15:23:25 UTC) #14
Mike Lerman
https://codereview.chromium.org/379283002/diff/420001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): https://codereview.chromium.org/379283002/diff/420001/chrome/browser/prerender/prerender_browsertest.cc#newcode1510 chrome/browser/prerender/prerender_browsertest.cc:1510: const base::HistogramTester& histogram_tester() { return histograms_; } On 2014/07/18 ...
6 years, 5 months ago (2014-07-18 15:55:52 UTC) #15
Ilya Sherman
(Still LGTM % comment below) https://codereview.chromium.org/379283002/diff/440001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/379283002/diff/440001/base/test/histogram_tester.cc#newcode95 base/test/histogram_tester.cc:95: auto histogram_data = histograms_snapshot_.find(name); ...
6 years, 5 months ago (2014-07-18 16:21:09 UTC) #16
msw
LGTM with nits and a question. https://codereview.chromium.org/379283002/diff/440001/chrome/browser/ui/views/passwords/manage_passwords_view_test.cc File chrome/browser/ui/views/passwords/manage_passwords_view_test.cc (right): https://codereview.chromium.org/379283002/diff/440001/chrome/browser/ui/views/passwords/manage_passwords_view_test.cc#newcode7 chrome/browser/ui/views/passwords/manage_passwords_view_test.cc:7: #include "base/test/histogram_tester.h" nit: ...
6 years, 5 months ago (2014-07-18 17:30:25 UTC) #17
Ilya Sherman
https://codereview.chromium.org/379283002/diff/440001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc (left): https://codereview.chromium.org/379283002/diff/440001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#oldcode99 chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc:99: histograms.Fetch(); On 2014/07/18 17:30:25, msw wrote: > Were the ...
6 years, 5 months ago (2014-07-18 17:32:01 UTC) #18
Mike Lerman
https://codereview.chromium.org/379283002/diff/440001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/379283002/diff/440001/base/test/histogram_tester.cc#newcode95 base/test/histogram_tester.cc:95: auto histogram_data = histograms_snapshot_.find(name); On 2014/07/18 16:21:09, Ilya Sherman ...
6 years, 5 months ago (2014-07-18 18:23:58 UTC) #19
groby-ooo-7-16
c/b/ui/cocoa LGTM (but shess already said so ;)
6 years, 5 months ago (2014-07-18 18:35:52 UTC) #20
groby-ooo-7-16
In that case, spellchecker LGTM ;)
6 years, 5 months ago (2014-07-18 18:45:33 UTC) #21
vabr (Chromium)
c/b/ui/views/passwords, c/b/ui/passwords LGTM Thanks! Vaclav
6 years, 5 months ago (2014-07-21 07:45:44 UTC) #22
Paweł Hajdan Jr.
"not lgtm" https://codereview.chromium.org/379283002/diff/460001/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://codereview.chromium.org/379283002/diff/460001/content/public/test/browser_test_utils.cc#newcode609 content/public/test/browser_test_utils.cc:609: TestTimeouts::action_max_timeout() * 2); The timeouts returned by ...
6 years, 5 months ago (2014-07-23 10:50:58 UTC) #23
Ilya Sherman
https://codereview.chromium.org/379283002/diff/460001/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://codereview.chromium.org/379283002/diff/460001/content/public/test/browser_test_utils.cc#newcode609 content/public/test/browser_test_utils.cc:609: TestTimeouts::action_max_timeout() * 2); On 2014/07/23 10:50:58, Paweł Hajdan Jr. ...
6 years, 5 months ago (2014-07-23 17:25:11 UTC) #24
Mike Lerman
Ping - Pawel? Also ping timsteele, brettw and dmazzoni.
6 years, 4 months ago (2014-07-29 15:03:47 UTC) #25
brettw
base lgtm, please fix timeout. https://codereview.chromium.org/379283002/diff/460001/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://codereview.chromium.org/379283002/diff/460001/content/public/test/browser_test_utils.cc#newcode609 content/public/test/browser_test_utils.cc:609: TestTimeouts::action_max_timeout() * 2); I ...
6 years, 4 months ago (2014-08-04 05:45:49 UTC) #26
Mike Lerman
Hi Pawel and Brett, I've changed the timeout, the new value seems to work fine. ...
6 years, 4 months ago (2014-08-04 19:12:46 UTC) #27
Mathieu
On 2014/08/04 19:12:46, Mike Lerman wrote: > Hi Pawel and Brett, > > I've changed ...
6 years, 4 months ago (2014-08-04 19:15:12 UTC) #28
Mike Lerman
+ nikita as reviewer for c/b/chromeos thanks!
6 years, 4 months ago (2014-08-04 20:43:42 UTC) #29
Nikita (slow)
On 2014/08/04 20:43:42, Mike Lerman wrote: > + nikita as reviewer for c/b/chromeos lgtm
6 years, 4 months ago (2014-08-05 12:03:58 UTC) #30
Nikita (slow)
https://codereview.chromium.org/379283002/diff/590001/chrome/browser/chromeos/external_metrics_unittest.cc File chrome/browser/chromeos/external_metrics_unittest.cc (right): https://codereview.chromium.org/379283002/diff/590001/chrome/browser/chromeos/external_metrics_unittest.cc#newcode38 chrome/browser/chromeos/external_metrics_unittest.cc:38: HistogramTester histogram_tester; It seems that you need to use ...
6 years, 4 months ago (2014-08-05 12:04:09 UTC) #31
Mike Lerman
Ping Pawel
6 years, 4 months ago (2014-08-06 14:12:21 UTC) #32
dmazzoni
lgtm for c/b/accessibility
6 years, 4 months ago (2014-08-11 05:45:21 UTC) #33
Paweł Hajdan Jr.
LGTM
6 years, 4 months ago (2014-08-11 09:57:41 UTC) #34
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 4 months ago (2014-08-21 15:14:13 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/379283002/710001
6 years, 4 months ago (2014-08-21 15:16:30 UTC) #36
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 4 months ago (2014-08-21 19:26:07 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/379283002/750001
6 years, 4 months ago (2014-08-21 19:28:54 UTC) #38
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 22:00:52 UTC) #39
Message was sent while issue was closed.
Committed patchset #27 (750001) as 291207

Powered by Google App Engine
This is Rietveld 408576698