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

Side by Side Diff: tools/perf/measurements/no_op.py

Issue 100933002: Add a no-op measurement (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2013 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 from telemetry.page import page_measurement
6
7 class NoOp(page_measurement.PageMeasurement):
8 def __init__(self):
9 super(NoOp, self).__init__('no_op')
10
11 def CanRunForPage(self, page):
12 return hasattr(page, 'no_op')
tonyg 2013/12/03 02:46:44 Does this prevent it from working with most page s
13
14 def WillRunAction(self, page, tab, action):
15 pass
16
17 def DidRunAction(self, page, tab, action):
tonyg 2013/12/03 02:46:44 Are Will/DidRunAction really necessary?
18 pass
19
20 def MeasurePage(self, page, tab, results):
21 pass
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698