2 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.value.summarizable
</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>.summarizable
</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/summarizable.py">telemetry/value/summarizable.py
</a></font></td></tr></table>
13 <p><tt>#
Copyright
2014 The
Chromium
Authors.
All
rights
reserved.
<br>
14 #
Use
of
this
source
code
is
governed
by
a
BSD-style
license
that
can
be
<br>
15 #
found
in
the
LICENSE
file.
</tt></p>
17 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
18 <tr bgcolor=
"#aa55cc">
19 <td colspan=
3 valign=bottom
> <br>
20 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Modules
</strong></big></font></td></tr>
22 <tr><td bgcolor=
"#aa55cc"><tt> </tt></td><td> </td>
23 <td width=
"100%"><table width=
"100%" summary=
"list"><tr><td width=
"25%" valign=top
><a href=
"telemetry.value.html">telemetry.value
</a><br>
24 </td><td width=
"25%" valign=top
></td><td width=
"25%" valign=top
></td><td width=
"25%" valign=top
></td></tr></table></td></tr></table><p>
25 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
26 <tr bgcolor=
"#ee77aa">
27 <td colspan=
3 valign=bottom
> <br>
28 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Classes
</strong></big></font></td></tr>
30 <tr><td bgcolor=
"#ee77aa"><tt> </tt></td><td> </td>
32 <dt><font face=
"helvetica, arial"><a href=
"telemetry.value.html#Value">telemetry.value.Value
</a>(
<a href=
"__builtin__.html#object">__builtin__.object
</a>)
35 <dt><font face=
"helvetica, arial"><a href=
"telemetry.value.summarizable.html#SummarizableValue">SummarizableValue
</a>
40 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
41 <tr bgcolor=
"#ffc8d8">
42 <td colspan=
3 valign=bottom
> <br>
43 <font color=
"#000000" face=
"helvetica, arial"><a name=
"SummarizableValue">class
<strong>SummarizableValue
</strong></a>(
<a href=
"telemetry.value.html#Value">telemetry.value.Value
</a>)
</font></td></tr>
45 <tr><td bgcolor=
"#ffc8d8"><tt> </tt></td><td> </td>
46 <td width=
"100%"><dl><dt>Method resolution order:
</dt>
47 <dd><a href=
"telemetry.value.summarizable.html#SummarizableValue">SummarizableValue
</a></dd>
48 <dd><a href=
"telemetry.value.html#Value">telemetry.value.Value
</a></dd>
49 <dd><a href=
"__builtin__.html#object">__builtin__.object
</a></dd>
52 Methods defined here:
<br>
53 <dl><dt><a name=
"SummarizableValue-AsDict"><strong>AsDict
</strong></a>(self)
</dt></dl>
55 <dl><dt><a name=
"SummarizableValue-AsDictWithoutBaseClassEntries"><strong>AsDictWithoutBaseClassEntries
</strong></a>(self)
</dt></dl>
57 <dl><dt><a name=
"SummarizableValue-GetBuildbotDataType"><strong>GetBuildbotDataType
</strong></a>(self, output_context)
</dt><dd><tt>Returns
the
buildbot's
equivalent
data_type.
<br>
59 This
should
be
one
of
the
values
accepted
by
perf_tests_results_helper.py.
</tt></dd></dl>
61 <dl><dt><a name=
"SummarizableValue-GetBuildbotValue"><strong>GetBuildbotValue
</strong></a>(self)
</dt><dd><tt>Returns
the
buildbot's
equivalent
value.
</tt></dd></dl>
63 <dl><dt><a name=
"SummarizableValue-GetRepresentativeNumber"><strong>GetRepresentativeNumber
</strong></a>(self)
</dt><dd><tt>Gets
a
single
scalar
value
that
best-represents
this
value.
<br>
65 Returns
None
if
not
possible.
</tt></dd></dl>
67 <dl><dt><a name=
"SummarizableValue-GetRepresentativeString"><strong>GetRepresentativeString
</strong></a>(self)
</dt><dd><tt>Gets
a
string
value
that
best-represents
this
value.
<br>
69 Returns
None
if
not
possible.
</tt></dd></dl>
71 <dl><dt><a name=
"SummarizableValue-__init__"><strong>__init__
</strong></a>(self, page, name, units, important, description, tir_label, improvement_direction)
</dt><dd><tt>A
summarizable
value
result
from
a
test.
</tt></dd></dl>
74 Class methods defined here:
<br>
75 <dl><dt><a name=
"SummarizableValue-MergeLikeValuesFromDifferentPages"><strong>MergeLikeValuesFromDifferentPages
</strong></a>(cls, values)
<font color=
"#909090"><font face=
"helvetica, arial"> from
<a href=
"__builtin__.html#type">__builtin__.type
</a></font></font></dt></dl>
77 <dl><dt><a name=
"SummarizableValue-MergeLikeValuesFromSamePage"><strong>MergeLikeValuesFromSamePage
</strong></a>(cls, values)
<font color=
"#909090"><font face=
"helvetica, arial"> from
<a href=
"__builtin__.html#type">__builtin__.type
</a></font></font></dt></dl>
80 Static methods defined here:
<br>
81 <dl><dt><a name=
"SummarizableValue-GetJSONTypeName"><strong>GetJSONTypeName
</strong></a>()
</dt></dl>
84 Data descriptors defined here:
<br>
85 <dl><dt><strong>improvement_direction
</strong></dt>
88 Methods inherited from
<a href=
"telemetry.value.html#Value">telemetry.value.Value
</a>:
<br>
89 <dl><dt><a name=
"SummarizableValue-GetChartAndTraceNameForComputedSummaryResult"><strong>GetChartAndTraceNameForComputedSummaryResult
</strong></a>(self, trace_tag)
</dt></dl>
91 <dl><dt><a name=
"SummarizableValue-GetChartAndTraceNameForPerPageResult"><strong>GetChartAndTraceNameForPerPageResult
</strong></a>(self)
</dt></dl>
93 <dl><dt><a name=
"SummarizableValue-IsMergableWith"><strong>IsMergableWith
</strong></a>(self, that)
</dt></dl>
95 <dl><dt><a name=
"SummarizableValue-__eq__"><strong>__eq__
</strong></a>(self, other)
</dt></dl>
97 <dl><dt><a name=
"SummarizableValue-__hash__"><strong>__hash__
</strong></a>(self)
</dt></dl>
100 Static methods inherited from
<a href=
"telemetry.value.html#Value">telemetry.value.Value
</a>:
<br>
101 <dl><dt><a name=
"SummarizableValue-FromDict"><strong>FromDict
</strong></a>(value_dict, page_dict)
</dt><dd><tt>Produces
a
value
from
a
value
dict
and
a
page
dict.
<br>
103 <a href=
"telemetry.value.html#Value">Value
</a> dicts
are
produced
by
serialization
to
JSON,
and
must
be
accompanied
<br>
104 by
a
dict
mapping
page
IDs
to
pages,
also
produced
by
serialization,
in
<br>
105 order
to
be
completely
deserialized.
If
deserializing
multiple
values,
use
<br>
106 ListOfValuesFromListOfDicts
instead.
<br>
108 value_dict:
a
dictionary
produced
by
<a href=
"#SummarizableValue-AsDict">AsDict
</a>()
on
a
value
subclass.
<br>
109 page_dict:
a
dictionary
mapping
IDs
to
page
objects.
</tt></dd></dl>
111 <dl><dt><a name=
"SummarizableValue-GetConstructorKwArgs"><strong>GetConstructorKwArgs
</strong></a>(value_dict, page_dict)
</dt><dd><tt>Produces
constructor
arguments
from
a
value
dict
and
a
page
dict.
<br>
113 Takes
a
dict
parsed
from
JSON
and
an
index
of
pages
and
recovers
the
<br>
114 keyword
arguments
to
be
passed
to
the
constructor
for
deserializing
the
<br>
117 value_dict:
a
dictionary
produced
by
<a href=
"#SummarizableValue-AsDict">AsDict
</a>()
on
a
value
subclass.
<br>
118 page_dict:
a
dictionary
mapping
IDs
to
page
objects.
</tt></dd></dl>
120 <dl><dt><a name=
"SummarizableValue-ListOfValuesFromListOfDicts"><strong>ListOfValuesFromListOfDicts
</strong></a>(value_dicts, page_dict)
</dt><dd><tt>Takes
a
list
of
value
dicts
to
values.
<br>
122 Given
a
list
of
value
dicts
produced
by
AsDict,
this
method
<br>
123 deserializes
the
dicts
given
a
dict
mapping
page
IDs
to
pages.
<br>
124 This
method
performs
memoization
for
deserializing
a
list
of
values
<br>
125 efficiently,
where
FromDict
is
meant
to
handle
one-offs.
<br>
127 values:
a
list
of
value
dicts
produced
by
<a href=
"#SummarizableValue-AsDict">AsDict
</a>()
on
a
value
subclass.
<br>
128 page_dict:
a
dictionary
mapping
IDs
to
page
objects.
</tt></dd></dl>
131 Data descriptors inherited from
<a href=
"telemetry.value.html#Value">telemetry.value.Value
</a>:
<br>
132 <dl><dt><strong>__dict__
</strong></dt>
133 <dd><tt>dictionary
for
instance
variables
(if
defined)
</tt></dd>
135 <dl><dt><strong>__weakref__
</strong></dt>
136 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
138 <dl><dt><strong>name_suffix
</strong></dt>
139 <dd><tt>Returns
the
string
after
a
.
in
the
name,
or
the
full
name
otherwise.
</tt></dd>
141 </td></tr></table></td></tr></table>