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

Issue 2426473006: Add support for base histograms in histograms.xml. (Closed)

Created:
4 years, 2 months ago by Bryan McQuade
Modified:
4 years, 2 months ago
Reviewers:
Ilya Sherman
CC:
asvitkine+watch_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for base histograms in histograms.xml. A base histogram is a histogram that is intended to be suffixed, but that shouldn't itself show up in the histogram UI. A base histogram is conceptually similar to an abstract base class. The histograms.xml syntax is: <histogram base="true" name="PageLoad.AbortTiming.Background" units="ms"> A similar syntax is added for marking suffixes as 'base': <suffix base="true" name="AfterPaint.BeforeInteraction"/> PageLoad.AbortTiming base histograms do not record samples, so we want to avoid showing them in the UI. To do so, we mark them as base histograms using the new 'base' histogram attribute. For now, 'base' histograms are simply marked as 'obsolete' with a default obsolete reason 'Base histogram. Use suffixes of this histogram instead.'. In the future, we can consider plumbing the 'base' information through to the UI using a mechanism other than the 'obsolete' reason, if a reason to do so emerges. BUG=656119 Committed: https://crrev.com/e3fc97108d47f023e6843a15210a7a956c6e18d7 Cr-Commit-Position: refs/heads/master@{#426087}

Patch Set 1 #

Patch Set 2 : update syntax #

Total comments: 2

Patch Set 3 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -14 lines) Patch
M tools/metrics/histograms/extract_histograms.py View 1 2 5 chunks +26 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 9 chunks +11 lines, -10 lines 0 comments Download
M tools/metrics/histograms/print_style.py View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (19 generated)
Bryan McQuade
Ilya, here's a change to implement my understanding of what you proposed in your comments ...
4 years, 2 months ago (2016-10-18 14:23:27 UTC) #10
Ilya Sherman
LGTM. Thanks for implementing this, Bryan! =) https://codereview.chromium.org/2426473006/diff/20001/tools/metrics/histograms/extract_histograms.py File tools/metrics/histograms/extract_histograms.py (right): https://codereview.chromium.org/2426473006/diff/20001/tools/metrics/histograms/extract_histograms.py#newcode417 tools/metrics/histograms/extract_histograms.py:417: # histogram ...
4 years, 2 months ago (2016-10-18 21:05:58 UTC) #14
Bryan McQuade
https://codereview.chromium.org/2426473006/diff/20001/tools/metrics/histograms/extract_histograms.py File tools/metrics/histograms/extract_histograms.py (right): https://codereview.chromium.org/2426473006/diff/20001/tools/metrics/histograms/extract_histograms.py#newcode417 tools/metrics/histograms/extract_histograms.py:417: # histogram must explicitly declare themselves as base histograms. ...
4 years, 2 months ago (2016-10-18 23:15:19 UTC) #17
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/2426473006/40001
4 years, 2 months ago (2016-10-18 23:35:24 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-18 23:45:27 UTC) #23
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:04:38 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e3fc97108d47f023e6843a15210a7a956c6e18d7
Cr-Commit-Position: refs/heads/master@{#426087}

Powered by Google App Engine
This is Rietveld 408576698