Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Issue 11615008: Only HistogramBase is used outside of base/metrics (Closed)

Created:
8 years ago by kaiwang
Modified:
7 years, 11 months ago
CC:
chromium-reviews, MAD, erikwright (departed), cbentzel+watch_chromium.org, marja+watch_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, Ilya Sherman, gavinp+disk_chromium.org, sky
Visibility:
Public.

Description

Only HistogramBase is used outside of base/metrics. So client code of histogram will see a simpler interface. This also makes adding SparseHistogram to existing metrics framework possible. This CL depends on https://codereview.chromium.org/11682003/ So please review that one first. [email protected],[email protected] BUG=139612 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178242

Patch Set 1 #

Patch Set 2 : Convert Histogram::FactoryGet #

Patch Set 3 : Convert all FactoryGet #

Patch Set 4 : Merge my serializing change #

Patch Set 5 : A missing file #

Patch Set 6 : Fix chromeos build #

Patch Set 7 : Rebase #

Total comments: 10

Patch Set 8 : Address comment #

Total comments: 4

Patch Set 9 : Address comments #

Total comments: 2

Patch Set 10 : Rebase and fix compiling #

Patch Set 11 : Compiling fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -297 lines) Patch
M base/message_loop.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M base/metrics/histogram.h View 1 2 3 4 5 6 7 8 9 10 chunks +29 lines, -38 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 4 5 6 7 chunks +25 lines, -33 lines 0 comments Download
M base/metrics/histogram_base.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M base/metrics/histogram_base.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M base/metrics/histogram_unittest.cc View 1 2 3 4 5 6 18 chunks +62 lines, -52 lines 0 comments Download
M base/metrics/statistics_recorder_unittest.cc View 1 2 3 4 5 6 7 10 chunks +48 lines, -40 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_metrics.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_service.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/boot_times_loader.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/external_metrics.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/user_image_manager_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/metrics/metrics.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/jankometer.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/thread_watcher.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/net/load_time_stats.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/net/load_time_stats.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/network_stats.cc View 1 2 7 chunks +19 lines, -17 lines 0 comments Download
M chrome/browser/net/url_info.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/signin/token_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/metrics_handler.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/startup_metric_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/loader/buffered_resource_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -6 lines 0 comments Download
M content/browser/zygote_host/zygote_host_impl_linux.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M net/base/mime_sniffer.cc View 1 2 10 chunks +13 lines, -13 lines 0 comments Download
M net/cookies/cookie_monster.h View 1 2 chunks +13 lines, -12 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/histogram_macros.h View 3 chunks +3 lines, -3 lines 0 comments Download
M net/socket/client_socket_pool_histograms.h View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M net/socket/client_socket_pool_histograms.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M sql/connection.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M ui/base/events/event.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/ppb_uma_private_impl.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
kaiwang
7 years, 12 months ago (2012-12-28 23:39:54 UTC) #1
kaiwang
Hi Ilya and Jim, please start to review this CL (as the one it depends ...
7 years, 11 months ago (2013-01-11 22:52:26 UTC) #2
Ilya Sherman
https://codereview.chromium.org/11615008/diff/25001/base/metrics/histogram_base.h File base/metrics/histogram_base.h (right): https://codereview.chromium.org/11615008/diff/25001/base/metrics/histogram_base.h#newcode96 base/metrics/histogram_base.h:96: void AddBoolean(bool value); IMO these should be virtual functions ...
7 years, 11 months ago (2013-01-12 00:48:01 UTC) #3
kaiwang
Sorry for late response. Busy with other tasks... https://codereview.chromium.org/11615008/diff/25001/base/metrics/histogram_base.h File base/metrics/histogram_base.h (right): https://codereview.chromium.org/11615008/diff/25001/base/metrics/histogram_base.h#newcode96 base/metrics/histogram_base.h:96: void ...
7 years, 11 months ago (2013-01-16 02:07:34 UTC) #4
Ilya Sherman
https://codereview.chromium.org/11615008/diff/25001/base/metrics/histogram_base.h File base/metrics/histogram_base.h (right): https://codereview.chromium.org/11615008/diff/25001/base/metrics/histogram_base.h#newcode96 base/metrics/histogram_base.h:96: void AddBoolean(bool value); On 2013/01/16 02:07:34, kaiwang wrote: > ...
7 years, 11 months ago (2013-01-16 04:34:34 UTC) #5
kaiwang
Only for first comment: In current code, AddTime is an inline function in Histogram. So ...
7 years, 11 months ago (2013-01-16 07:38:23 UTC) #6
kaiwang
On 2013/01/16 07:38:23, kaiwang wrote: > Only for first comment: > > In current code, ...
7 years, 11 months ago (2013-01-16 07:39:11 UTC) #7
kaiwang
https://codereview.chromium.org/11615008/diff/25001/base/metrics/statistics_recorder_unittest.cc File base/metrics/statistics_recorder_unittest.cc (right): https://codereview.chromium.org/11615008/diff/25001/base/metrics/statistics_recorder_unittest.cc#newcode63 base/metrics/statistics_recorder_unittest.cc:63: DeleteHistogram(histogram); On 2013/01/16 04:34:34, Ilya Sherman wrote: > On ...
7 years, 11 months ago (2013-01-16 19:08:05 UTC) #8
Ilya Sherman
lgtm https://codereview.chromium.org/11615008/diff/34001/base/metrics/histogram_base.cc File base/metrics/histogram_base.cc (right): https://codereview.chromium.org/11615008/diff/34001/base/metrics/histogram_base.cc#newcode89 base/metrics/histogram_base.cc:89: void HistogramBase::AddTime(TimeDelta time) { nit: Pass by const-reference. ...
7 years, 11 months ago (2013-01-18 01:49:10 UTC) #9
kaiwang
https://codereview.chromium.org/11615008/diff/34001/base/metrics/histogram_base.cc File base/metrics/histogram_base.cc (right): https://codereview.chromium.org/11615008/diff/34001/base/metrics/histogram_base.cc#newcode89 base/metrics/histogram_base.cc:89: void HistogramBase::AddTime(TimeDelta time) { On 2013/01/18 01:49:10, Ilya Sherman ...
7 years, 11 months ago (2013-01-18 02:33:19 UTC) #10
kaiwang
Owners, please review this CL. Thanks a lot! jar: base/ and net/ brettw: chrome/ , ...
7 years, 11 months ago (2013-01-18 02:37:04 UTC) #11
jar (doing other things)
https://codereview.chromium.org/11615008/diff/38002/base/metrics/histogram_unittest.cc File base/metrics/histogram_unittest.cc (right): https://codereview.chromium.org/11615008/diff/38002/base/metrics/histogram_unittest.cc#newcode104 base/metrics/histogram_unittest.cc:104: Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); What was the advantage ...
7 years, 11 months ago (2013-01-18 03:01:58 UTC) #12
kaiwang
https://codereview.chromium.org/11615008/diff/38002/base/metrics/histogram_unittest.cc File base/metrics/histogram_unittest.cc (right): https://codereview.chromium.org/11615008/diff/38002/base/metrics/histogram_unittest.cc#newcode104 base/metrics/histogram_unittest.cc:104: Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); FactoryGet usually get the ...
7 years, 11 months ago (2013-01-18 03:33:03 UTC) #13
kaiwang
ping...
7 years, 11 months ago (2013-01-22 01:49:06 UTC) #14
jar (doing other things)
Patch set 9 base LGTM
7 years, 11 months ago (2013-01-22 17:09:39 UTC) #15
brettw
chrome, content, webkit lgtm
7 years, 11 months ago (2013-01-22 18:26:00 UTC) #16
jar (doing other things)
Patch set 9. net/* LGTM
7 years, 11 months ago (2013-01-22 18:30:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11615008/38002
7 years, 11 months ago (2013-01-22 18:31:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11615008/38002
7 years, 11 months ago (2013-01-22 18:35:10 UTC) #19
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-22 18:47:02 UTC) #20
kaiwang
TBR sky and erikwright for one line changes under ui and sql
7 years, 11 months ago (2013-01-23 01:49:25 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11615008/45025
7 years, 11 months ago (2013-01-23 01:51:18 UTC) #22
commit-bot: I haz the power
7 years, 11 months ago (2013-01-23 04:12:22 UTC) #23
Message was sent while issue was closed.
Change committed as 178242

Powered by Google App Engine
This is Rietveld 408576698