telemetry.value.histogram_util | index telemetry/value/histogram_util.py

`This is a helper module to get and manipulate histogram data.
The histogram data is the same data as is visible from "chrome://histograms".
More information can be found at: chromium/src/base/metrics/histogram.h`

Modules
`` |  |
collections | telemetry.core.exceptions | json | logging

Functions
`` |  | AddHistograms(histogram_jsons) `Adds histograms together. Used for aggregating data. The parameter is a list of json serializations and the returned result is a json serialization too. Note that the histograms to be added together are typically from different processes.` CustomizeBrowserOptions(options) `Allows histogram collection.` GetHistogram(histogram_type, histogram_name, tab) `Get a json serialization of a histogram.` GetHistogramBucketsFromJson(histogram_json) GetHistogramBucketsFromRawValue(raw_value) GetHistogramCount(histogram_type, histogram_name, tab) `Get the count of events for the given histograms.` GetHistogramSum(histogram_type, histogram_name, tab) `Get the sum of events for the given histograms.` SubtractHistogram(histogram_json, start_histogram_json) `Subtracts a previous histogram from a histogram. Both parameters and the returned result are json serializations.`

Data
`` |  | BROWSER_HISTOGRAM = 'browser_histogram' RENDERER_HISTOGRAM = 'renderer_histogram'