2 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.value.histogram_util
</title>
5 </head><body bgcolor=
"#f0f0f8">
7 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"heading">
9 <td valign=bottom
> <br>
10 <font color=
"#ffffff" face=
"helvetica, arial"> <br><big><big><strong><a href=
"telemetry.html"><font color=
"#ffffff">telemetry
</font></a>.
<a href=
"telemetry.value.html"><font color=
"#ffffff">value
</font></a>.histogram_util
</strong></big></big></font></td
11 ><td align=right valign=bottom
12 ><font color=
"#ffffff" face=
"helvetica, arial"><a href=
".">index
</a><br><a href=
"../telemetry/value/histogram_util.py">telemetry/value/histogram_util.py
</a></font></td></tr></table>
13 <p><tt>This
is
a
helper
module
to
get
and
manipulate
histogram
data.
<br>
15 The
histogram
data
is
the
same
data
as
is
visible
from
"chrome://histograms".
<br>
16 More
information
can
be
found
at:
chromium/src/base/metrics/histogram.h
</tt></p>
18 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
19 <tr bgcolor=
"#aa55cc">
20 <td colspan=
3 valign=bottom
> <br>
21 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Modules
</strong></big></font></td></tr>
23 <tr><td bgcolor=
"#aa55cc"><tt> </tt></td><td> </td>
24 <td width=
"100%"><table width=
"100%" summary=
"list"><tr><td width=
"25%" valign=top
><a href=
"collections.html">collections
</a><br>
25 </td><td width=
"25%" valign=top
><a href=
"telemetry.core.exceptions.html">telemetry.core.exceptions
</a><br>
26 </td><td width=
"25%" valign=top
><a href=
"json.html">json
</a><br>
27 </td><td width=
"25%" valign=top
><a href=
"logging.html">logging
</a><br>
28 </td></tr></table></td></tr></table><p>
29 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
30 <tr bgcolor=
"#eeaa77">
31 <td colspan=
3 valign=bottom
> <br>
32 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Functions
</strong></big></font></td></tr>
34 <tr><td bgcolor=
"#eeaa77"><tt> </tt></td><td> </td>
35 <td width=
"100%"><dl><dt><a name=
"-AddHistograms"><strong>AddHistograms
</strong></a>(histogram_jsons)
</dt><dd><tt>Adds
histograms
together.
Used
for
aggregating
data.
<br>
37 The
parameter
is
a
list
of
json
serializations
and
the
returned
result
is
a
<br>
38 json
serialization
too.
<br>
40 Note
that
the
histograms
to
be
added
together
are
typically
from
different
<br>
41 processes.
</tt></dd></dl>
42 <dl><dt><a name=
"-CustomizeBrowserOptions"><strong>CustomizeBrowserOptions
</strong></a>(options)
</dt><dd><tt>Allows
histogram
collection.
</tt></dd></dl>
43 <dl><dt><a name=
"-GetHistogram"><strong>GetHistogram
</strong></a>(histogram_type, histogram_name, tab)
</dt><dd><tt>Get
a
json
serialization
of
a
histogram.
</tt></dd></dl>
44 <dl><dt><a name=
"-GetHistogramBucketsFromJson"><strong>GetHistogramBucketsFromJson
</strong></a>(histogram_json)
</dt></dl>
45 <dl><dt><a name=
"-GetHistogramBucketsFromRawValue"><strong>GetHistogramBucketsFromRawValue
</strong></a>(raw_value)
</dt></dl>
46 <dl><dt><a name=
"-GetHistogramCount"><strong>GetHistogramCount
</strong></a>(histogram_type, histogram_name, tab)
</dt><dd><tt>Get
the
count
of
events
for
the
given
histograms.
</tt></dd></dl>
47 <dl><dt><a name=
"-GetHistogramSum"><strong>GetHistogramSum
</strong></a>(histogram_type, histogram_name, tab)
</dt><dd><tt>Get
the
sum
of
events
for
the
given
histograms.
</tt></dd></dl>
48 <dl><dt><a name=
"-SubtractHistogram"><strong>SubtractHistogram
</strong></a>(histogram_json, start_histogram_json)
</dt><dd><tt>Subtracts
a
previous
histogram
from
a
histogram.
<br>
50 Both
parameters
and
the
returned
result
are
json
serializations.
</tt></dd></dl>
52 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
53 <tr bgcolor=
"#55aa55">
54 <td colspan=
3 valign=bottom
> <br>
55 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Data
</strong></big></font></td></tr>
57 <tr><td bgcolor=
"#55aa55"><tt> </tt></td><td> </td>
58 <td width=
"100%"><strong>BROWSER_HISTOGRAM
</strong> = 'browser_histogram'
<br>
59 <strong>RENDERER_HISTOGRAM
</strong> = 'renderer_histogram'
</td></tr></table>