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

Issue 484603006: Add LOCAL_ prefix to non-UMA histogram macros. (Closed)

Created:
6 years, 3 months ago by Alexei Svitkine (slow)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, zea+watch_chromium.org, tzik, jdduke+watch_chromium.org, browser-components-watch_chromium.org, Ilya Sherman, nkostylev+watch_chromium.org, tim+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, stevenjb+watch_chromium.org, jam, rlp+watch_chromium.org, groby+spellwatch_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, pedrosimonetti+watch_chromium.org, dbeam+watch-ntp_chromium.org, haitaol+watch_chromium.org, rouslan+spellwatch_chromium.org, nhiroki, asvitkine+watch_chromium.org, maniscalco+watch_chromium.org, tfarina, mmenke, darin-cc_chromium.org, estade+watch_chromium.org, cc-bugs_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add LOCAL_ prefix to non-UMA histogram macros. This makes it harder to accidently use the wrong macro. Also, removes the D* variants of the macros and associated DebugNow() function. These were rarely used and removing them removes clutter from the header file. Existing uses converted to be behind NDEBUG ifdefs. No functional changes except for a fix to the code in content_based_thumbnailing_algorithm.cc which was incorrectly using a ternary operator for the histogram name (which doesn't work since the macros cache the histogram object) and removal of local histograms Spellcheck.SuggestTime and Spellcheck.InitTime per groby@. Since this is an API rename, TBR'ing downstream owners. BUG=311349 TBR=groby@chromium.org,zea@chromium.org,jeremy@chromium.org,reveman@chromium.org,agl@chromium.org,jam@chromium.org Committed: https://crrev.com/c0fb802166c8389285c8a850bd47d2d96935f6f1 Cr-Commit-Position: refs/heads/master@{#291840}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove spellcheck histograms. #

Total comments: 5

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -261 lines) Patch
M base/metrics/field_trial.h View 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/histogram.h View 7 chunks +16 lines, -87 lines 0 comments Download
M base/metrics/histogram.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M base/metrics/histogram_unittest.cc View 1 chunk +5 lines, -8 lines 0 comments Download
M base/metrics/sparse_histogram.h View 1 2 1 chunk +3 lines, -29 lines 0 comments Download
M base/metrics/sparse_histogram_unittest.cc View 1 2 3 chunks +5 lines, -18 lines 0 comments Download
M base/metrics/statistics_recorder_unittest.cc View 2 chunks +7 lines, -18 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_mac.mm View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/memory/oom_priority_manager.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/external_registry_loader_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/metrics/chrome_stability_metrics_provider.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/evicted_domain_cookie_counter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/network_stats.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/url_info.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/browser/safe_browsing/database_manager.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_platform_mac.mm View 1 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc View 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/thumbnails/simple_thumbnail_crop.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/spellchecker/hunspell_engine.cc View 1 2 chunks +0 lines, -7 lines 0 comments Download
M components/startup_metric_utils/startup_metric_utils.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/plugin_loader_posix.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/child/child_histogram_message_filter.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/child/web_database_observer_impl.cc View 6 chunks +12 lines, -12 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M crypto/nss_util.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M net/cert/x509_certificate.cc View 1 chunk +3 lines, -1 line 0 comments Download
M net/disk_cache/blockfile/block_bitmaps_v3.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/disk_cache/blockfile/block_files.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/util/data_type_histogram_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Alexei Svitkine (slow)
6 years, 3 months ago (2014-08-25 20:32:22 UTC) #1
groby-ooo-7-16
Drive-by for spellcheck. https://codereview.chromium.org/484603006/diff/1/chrome/browser/spellchecker/spellcheck_platform_mac.mm File chrome/browser/spellchecker/spellcheck_platform_mac.mm (right): https://codereview.chromium.org/484603006/diff/1/chrome/browser/spellchecker/spellcheck_platform_mac.mm#newcode206 chrome/browser/spellchecker/spellcheck_platform_mac.mm:206: LOCAL_HISTOGRAM_TIMES("Spellcheck.SuggestTime", Feel free to remove https://codereview.chromium.org/484603006/diff/1/chrome/renderer/spellchecker/hunspell_engine.cc ...
6 years, 3 months ago (2014-08-25 21:12:12 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/484603006/diff/1/chrome/browser/spellchecker/spellcheck_platform_mac.mm File chrome/browser/spellchecker/spellcheck_platform_mac.mm (right): https://codereview.chromium.org/484603006/diff/1/chrome/browser/spellchecker/spellcheck_platform_mac.mm#newcode206 chrome/browser/spellchecker/spellcheck_platform_mac.mm:206: LOCAL_HISTOGRAM_TIMES("Spellcheck.SuggestTime", On 2014/08/25 21:12:11, groby wrote: > Feel free ...
6 years, 3 months ago (2014-08-25 21:21:03 UTC) #3
Ilya Sherman
Thanks for doing this cleanup, Alexei! A lot of these look to me like they ...
6 years, 3 months ago (2014-08-26 00:23:28 UTC) #4
Alexei Svitkine (slow)
Done. Will TBR= owners, but advise them to convert their histograms to UMA_ versions in ...
6 years, 3 months ago (2014-08-26 00:54:01 UTC) #5
Alexei Svitkine (slow)
asvitkine@chromium.org changed reviewers: + agl@chromium.org, groby@chromium.org, jam@chromium.org, jeremy@chromium.org, reveman@chromium.org, zea@chromium.org
6 years, 3 months ago (2014-08-26 01:02:05 UTC) #6
Alexei Svitkine (slow)
Adding file owners TBR'd since this is an API rename with no functional changes. TBR=groby@chromium.org,zea@chromium.org,jeremy@chromium.org,reveman@chromium.org,agl@chromium.org,jam@chromium.org ...
6 years, 3 months ago (2014-08-26 01:02:05 UTC) #7
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 3 months ago (2014-08-26 01:02:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/484603006/40001
6 years, 3 months ago (2014-08-26 01:09:14 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_rel_device on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-26 02:18:20 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (40001) as 5cb8835bc1e0d855ee8523cf6f86c49b9bcac0d0
6 years, 3 months ago (2014-08-26 04:40:21 UTC) #11
jeremy
LGTM, thanks for making this change! Makes things much less error prone!
6 years, 3 months ago (2014-08-26 08:26:48 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:40:30 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c0fb802166c8389285c8a850bd47d2d96935f6f1
Cr-Commit-Position: refs/heads/master@{#291840}

Powered by Google App Engine
This is Rietveld 408576698