| |
- __builtin__.object
-
- TimelineBasedMetric
- exceptions.Exception(exceptions.BaseException)
-
- TimelineBasedMetricException
class TimelineBasedMetric(__builtin__.object) |
| |
Methods defined here:
- AddResults(self, model, renderer_thread, interaction_records, results)
- Computes and adds metrics for the interaction_records' time ranges.
The override of this method should compute results on the data **only**
within the interaction_records' start and end time ranges.
Args:
model: An instance of telemetry.timeline.model.TimelineModel.
interaction_records: A list of instances of TimelineInteractionRecord. If
the override of this method doesn't support overlapped ranges, use
VerifyNonOverlappedRecords to check that no records are overlapped.
results: An instance of page.PageTestResults.
- AddWholeTraceResults(self, model, results)
- Computes and adds metrics corresponding to the entire trace.
Override this method to compute results that correspond to the whole trace.
Args:
model: An instance of telemetry.timeline.model.TimelineModel.
results: An instance of page.PageTestResults.
- VerifyNonOverlappedRecords(self, interaction_records)
- This raises exceptions if interaction_records contain overlapped ranges.
- __init__(self)
- Computes metrics from a telemetry.timeline Model and a range
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|