Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: tools/perf/metrics/timeline_based_metric.py

Issue 165673008: [telemetry] Implement first version of timeline based measurement (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With feedback and naming updates Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 interaction_record, 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.
nednguyen 2014/03/04 15:38:47 Compute metric on the data during interaction_reco
16
17 model is a model of timeline APIT. (TODO: make a shared timeline superclass)
18 interaction_record is an instance of TimelineInteractionRecord.
19 results is an instance of page.PageTestResults.
nednguyen 2014/03/04 15:38:47 Our plan is using a results wrapper here to make s
20 """
21 raise NotImplementedError()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698