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

Issue 515033: Cleanup histogram classes mixing SetFlags into FactoryGet arguments... (Closed)

Created:
11 years ago by jar (doing other things)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ncarter (slow), ben+cc_chromium.org, Paul Godavari, jam, idana, darin (slow to review), tim (not reviewing)
Visibility:
Public.

Description

Cleanup histogram classes mixing SetFlags into FactoryGet arguments Generic cleanup of histogram class, renaming *FactoryGet to FactoryGet, along with reformatting. The macros were cleaned up to use common sub-macros rather than repeating code as much. Removed ThreadSafeHistogram (and associated ASSET_HISTOGRAM macros) since this class was not getting used. I introduced UMA_HISTOGRAM_ENUMERATION to support the common use of LinearHistograms to count various enumerated values. I added a Flags argument to all the FactoryGet routines to help avoid needing to call SetFlags each time a new sample is Add()ed. This also simplifies the code. This will all help prepare for a "don't histogram at all" macro setting so that I can test the impact of the histogram macro calls on performance (since there are now so many active histograms). BUG=31206 r=raman.tenneti Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35295

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 4

Patch Set 12 : '' #

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -669 lines) Patch
M base/histogram.h View 1 2 3 4 5 6 7 8 9 10 11 13 chunks +94 lines, -196 lines 0 comments Download
M base/histogram.cc View 1 2 3 4 5 6 7 8 9 10 11 12 19 chunks +45 lines, -107 lines 0 comments Download
M base/histogram_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +49 lines, -135 lines 0 comments Download
M base/message_loop.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/chrome_browser_application_mac.mm View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/chrome_browser_application_mac_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/diagnostics/sqlite_diagnostics.cc View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/jankometer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -8 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/dns_host_info.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc View 1 2 3 4 5 3 chunks +21 lines, -40 lines 0 comments Download
M chrome/browser/renderer_host/buffered_resource_handler.cc View 4 5 6 7 8 1 chunk +6 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 1 chunk +1 line, -6 lines 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -5 lines 0 comments Download
M net/base/connection_type_histograms.cc View 1 2 3 1 chunk +8 lines, -18 lines 0 comments Download
M net/base/mime_sniffer.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M net/base/sdch_manager.cc View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M net/disk_cache/histogram_macros.h View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M net/ftp/ftp_network_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -23 lines 0 comments Download
M net/ftp/ftp_server_type_histograms.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -24 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -28 lines 0 comments Download
M net/socket_stream/socket_stream_metrics.cc View 1 2 3 1 chunk +4 lines, -12 lines 0 comments Download
M net/socket_stream/socket_stream_metrics_unittest.cc View 3 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jar (doing other things)
10 years, 12 months ago (2009-12-27 20:23:12 UTC) #1
Paweł Hajdan Jr.
Jim, thanks for the change. It makes the FTP histogram code a lot simpler. Could ...
10 years, 12 months ago (2009-12-27 20:54:54 UTC) #2
jar (doing other things)
Made changes in comments per Pawel's request. Removed ThreadSafeHistogram (which was not being used) along ...
10 years, 12 months ago (2009-12-28 01:08:30 UTC) #3
raman
10 years, 12 months ago (2009-12-28 06:50:21 UTC) #4
LGTM to jim.

thanks,
raman

Powered by Google App Engine
This is Rietveld 408576698