Chromium Code Reviews| Index: tools/perf/measurements/no_op.py |
| diff --git a/tools/perf/measurements/no_op.py b/tools/perf/measurements/no_op.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..148185efa3b869526637d38fbffc93e17092ad8a |
| --- /dev/null |
| +++ b/tools/perf/measurements/no_op.py |
| @@ -0,0 +1,21 @@ |
| +# Copyright (c) 2013 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. |
| + |
| +from telemetry.page import page_measurement |
| + |
| +class NoOp(page_measurement.PageMeasurement): |
| + def __init__(self): |
| + super(NoOp, self).__init__('no_op') |
| + |
| + def CanRunForPage(self, page): |
| + return hasattr(page, 'no_op') |
|
tonyg
2013/12/03 02:46:44
Does this prevent it from working with most page s
|
| + |
| + def WillRunAction(self, page, tab, action): |
| + pass |
| + |
| + def DidRunAction(self, page, tab, action): |
|
tonyg
2013/12/03 02:46:44
Are Will/DidRunAction really necessary?
|
| + pass |
| + |
| + def MeasurePage(self, page, tab, results): |
| + pass |