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

Issue 2825573003: Update update_histogram_enum.py and update_use_counter_feature_enum.py for Blink rename (Closed)

Created:
3 years, 8 months ago by Timothy Loh
Modified:
3 years, 8 months ago
Reviewers:
Ilya Sherman, dcheng
CC:
chromium-reviews, blink-reviews, blink-reviews-frames_chromium.org, asvitkine+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update update_histogram_enum.py and update_use_counter_feature_enum.py for Blink rename This patch updates the scripts for keeping histograms.xml up-to-date so that they work correctly after the recent Blink rename. While all the feature enums are now written as kFooMetric, we'd prefer to have them show as FooMetric in the histograms so support is added for dropping a leading 'k'. This patch also adds support for enums with super long names, such as kUncancellableTouchEventDueToMainThreadResponsivenessPreventDefaulted, which cause the enum initialization to end up on a separate line. BUG=675877 Review-Url: https://codereview.chromium.org/2825573003 Cr-Commit-Position: refs/heads/master@{#465178} Committed: https://chromium.googlesource.com/chromium/src/+/4b963a8aa430d5937da3f3cdc7bafcd614d36877

Patch Set 1 #

Total comments: 5

Patch Set 2 : remove spaces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -39 lines) Patch
M third_party/WebKit/Source/core/frame/PRESUBMIT.py View 1 chunk +5 lines, -4 lines 0 comments Download
M tools/metrics/histograms/update_histogram_enum.py View 7 chunks +46 lines, -32 lines 0 comments Download
M tools/metrics/histograms/update_use_counter_feature_enum.py View 1 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Timothy Loh
https://codereview.chromium.org/2825573003/diff/1/third_party/WebKit/Source/core/frame/PRESUBMIT.py File third_party/WebKit/Source/core/frame/PRESUBMIT.py (right): https://codereview.chromium.org/2825573003/diff/1/third_party/WebKit/Source/core/frame/PRESUBMIT.py#newcode75 third_party/WebKit/Source/core/frame/PRESUBMIT.py:75: start_marker = '^enum Feature : uint32_t {' pylint doesn't ...
3 years, 8 months ago (2017-04-18 05:26:11 UTC) #4
dcheng
blink lgtm
3 years, 8 months ago (2017-04-18 05:30:42 UTC) #5
Ilya Sherman
Thanks! LGTM % nits: https://codereview.chromium.org/2825573003/diff/1/tools/metrics/histograms/update_use_counter_feature_enum.py File tools/metrics/histograms/update_use_counter_feature_enum.py (right): https://codereview.chromium.org/2825573003/diff/1/tools/metrics/histograms/update_use_counter_feature_enum.py#newcode42 tools/metrics/histograms/update_use_counter_feature_enum.py:42: END_MARKER, strip_k_prefix = True) nit: ...
3 years, 8 months ago (2017-04-18 05:55:09 UTC) #6
Timothy Loh
https://codereview.chromium.org/2825573003/diff/1/tools/metrics/histograms/update_use_counter_feature_enum.py File tools/metrics/histograms/update_use_counter_feature_enum.py (right): https://codereview.chromium.org/2825573003/diff/1/tools/metrics/histograms/update_use_counter_feature_enum.py#newcode42 tools/metrics/histograms/update_use_counter_feature_enum.py:42: END_MARKER, strip_k_prefix = True) On 2017/04/18 05:55:09, Ilya Sherman ...
3 years, 8 months ago (2017-04-18 06:03:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2825573003/20001
3 years, 8 months ago (2017-04-18 06:03:15 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 08:42:22 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4b963a8aa430d5937da3f3cdc7ba...

Powered by Google App Engine
This is Rietveld 408576698