Create a macro for counter histograms. |
|||
Issue descriptionIt seems like there is a fairly frequent desire for a histogram which is just a counter, e.g. a single bucket which is just incremented to count how many times a single thing happens. This usually shows up as a histograms which always records the sample "1", sometimes in a numeric histogram. We should probably just add a macro explicitly for counters, so that cases of this are easier to support. maybe UMA_HISTOGRAM_COUNTER(name), documented as <histogram name=".." enum="Counter">
,
Sep 1 2017
,
Feb 27 2018
I suppose that I'm not really opposed to landing this, perhaps named UMA_HISTOGRAM_HIT_COUNTER, to match the existing BooleanHit enum that we have defined in enums.xml (and typically use for such counter histograms). I would still want to include a big caveat above the macro, since it's more often appropriate to include a baseline with any given metric. |
|||
►
Sign in to add a comment |
|||
Comment 1 by isherman@chromium.org
, Aug 25 2017