telemetry.value.scalar | index telemetry/value/scalar.py

`# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Modules
`` |  |
telemetry.value.list_of_scalar_values telemetry.value.none_values | numbers telemetry.value.summarizable | telemetry.value |

Classes
`` |  | telemetry.value.summarizable.SummarizableValue(telemetry.value.Value) ScalarValue
class ScalarValue(telemetry.value.summarizable.SummarizableValue)
`` |  | Method resolution order: ScalarValue telemetry.value.summarizable.SummarizableValue telemetry.value.Value __builtin__.object Methods defined here: AsDict(self) GetBuildbotDataType(self, output_context) GetBuildbotValue(self) GetRepresentativeNumber(self) GetRepresentativeString(self) __init__(self, page, name, units, value, important=True, description=None, tir_label=None, none_value_reason=None, improvement_direction=None) `A single value (float or integer) result from a test. A test that counts the number of DOM elements in a page might produce a scalar value: ScalarValue(page, 'num_dom_elements', 'count', num_elements)` __repr__(self) Class methods defined here: MergeLikeValuesFromDifferentPages(cls, values) from __builtin__.type MergeLikeValuesFromSamePage(cls, values) from __builtin__.type Static methods defined here: FromDict(value_dict, page_dict) GetJSONTypeName() Methods inherited from telemetry.value.summarizable.SummarizableValue: AsDictWithoutBaseClassEntries(self) Data descriptors inherited from telemetry.value.summarizable.SummarizableValue: improvement_direction Methods inherited from telemetry.value.Value: GetChartAndTraceNameForComputedSummaryResult(self, trace_tag) GetChartAndTraceNameForPerPageResult(self) IsMergableWith(self, that) __eq__(self, other) __hash__(self) Static methods inherited from telemetry.value.Value: GetConstructorKwArgs(value_dict, page_dict) `Produces constructor arguments from a value dict and a page dict. Takes a dict parsed from JSON and an index of pages and recovers the keyword arguments to be passed to the constructor for deserializing the dict. value_dict: a dictionary produced by AsDict() on a value subclass. page_dict: a dictionary mapping IDs to page objects.` ListOfValuesFromListOfDicts(value_dicts, page_dict) `Takes a list of value dicts to values. Given a list of value dicts produced by AsDict, this method deserializes the dicts given a dict mapping page IDs to pages. This method performs memoization for deserializing a list of values efficiently, where FromDict is meant to handle one-offs. values: a list of value dicts produced by AsDict() on a value subclass. page_dict: a dictionary mapping IDs to page objects.` Data descriptors inherited from telemetry.value.Value: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` name_suffix `Returns the string after a . in the name, or the full name otherwise.`