Python: module telemetry.value.failure

telemetry.value.failure | index telemetry/value/failure.py

`# Copyright 2014 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
`` |  |
sys | traceback | telemetry.value |

Classes
`` |  | telemetry.value.Value(__builtin__.object) FailureValue
class FailureValue(telemetry.value.Value)
`` |  | Method resolution order: FailureValue telemetry.value.Value __builtin__.object Methods defined here: AsDict(self) GetBuildbotDataType(self, output_context) GetBuildbotValue(self) GetChartAndTraceNameForPerPageResult(self) GetRepresentativeNumber(self) GetRepresentativeString(self) __init__(self, page, exc_info, description=None, tir_label=None) `A value representing a failure when running the page. Args: page: The page where this failure occurs. exc_info: The exception info (sys.exc_info()) corresponding to this failure.` __repr__(self) Class methods defined here: FromMessage(cls, page, message) from __builtin__.type `Creates a failure value for a given string message. Args: page: The page where this failure occurs. message: A string message describing the failure.` MergeLikeValuesFromDifferentPages(cls, values) from __builtin__.type MergeLikeValuesFromSamePage(cls, values) from __builtin__.type Static methods defined here: FromDict(value_dict, page_dict) GetJSONTypeName() Data descriptors defined here: exc_info Methods inherited from telemetry.value.Value: AsDictWithoutBaseClassEntries(self) GetChartAndTraceNameForComputedSummaryResult(self, trace_tag) 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.`

Functions
`` |  | GetStringFromExcInfo(exc_info)