Python: module telemetry.value.trace

telemetry.value.trace | index telemetry/value/trace.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
`` |  |
StringIO catapult_base.cloud_storage datetime telemetry.internal.util.file_handle | logging os random shutil | sys tempfile tracing_build.trace2html telemetry.timeline.trace_data | telemetry.value

Classes
`` |  | telemetry.value.Value(__builtin__.object) TraceValue
class TraceValue(telemetry.value.Value)
`` |  | Method resolution order: TraceValue telemetry.value.Value __builtin__.object Methods defined here: AsDict(self) CleanUp(self) `Cleans up tempfile after it is no longer needed. A cleaned up TraceValue cannot be used for further operations. CleanUp() may be called more than once without error.` GetBuildbotDataType(self, output_context) GetBuildbotValue(self) GetRepresentativeNumber(self) GetRepresentativeString(self) Serialize(self, dir_path) UploadToCloud(self, bucket) __enter__(self) __exit__(self, _, __, ___) __init__(self, page, trace_data, important=False, description=None) `A value that contains a TraceData object and knows how to output it. Adding TraceValues and outputting as JSON will produce a directory full of HTML files called trace_files. Outputting as chart JSON will also produce an index, files.html, linking to each of these files.` __repr__(self) Class methods defined here: MergeLikeValuesFromDifferentPages(cls, values) from __builtin__.type MergeLikeValuesFromSamePage(cls, values) from __builtin__.type Static methods defined here: GetJSONTypeName() Data descriptors defined here: cleaned_up Methods inherited from telemetry.value.Value: AsDictWithoutBaseClassEntries(self) GetChartAndTraceNameForComputedSummaryResult(self, trace_tag) GetChartAndTraceNameForPerPageResult(self) IsMergableWith(self, that) __eq__(self, other) __hash__(self) Static methods inherited from telemetry.value.Value: FromDict(value_dict, page_dict) `Produces a value from a value dict and a page dict. Value dicts are produced by serialization to JSON, and must be accompanied by a dict mapping page IDs to pages, also produced by serialization, in order to be completely deserialized. If deserializing multiple values, use ListOfValuesFromListOfDicts instead. value_dict: a dictionary produced by AsDict() on a value subclass. page_dict: a dictionary mapping IDs to page objects.` 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.`