OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 class TimelineBasedMetric(object): |
| 6 def __init__(self): |
| 7 """Computes metrics from a telemetry.core.timeline Model and a range |
| 8 |
| 9 """ |
| 10 super(TimelineBasedMetric, self).__init__() |
| 11 |
| 12 def AddResults(self, model, renderer_thread, |
| 13 metric_request, results): |
| 14 """ Override to actually add metrics to the results. Metric that overrides |
| 15 this method should only compute metric on the data between time_bound. |
| 16 |
| 17 model is a model of timeline APIT. (TODO: make a shared timeline superclass) |
| 18 meric_request is an instance of TimelineBasedMetricRequest |
| 19 results is an instance of page.PageTestResults. |
| 20 """ |
| 21 raise NotImplementedError() |
OLD | NEW |