Chromium Code Reviews| Index: tools/perf/benchmarks/power.py |
| diff --git a/tools/perf/benchmarks/power.py b/tools/perf/benchmarks/power.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..903f6da74e6984639ae6c5015bfe9ab40769c5ec |
| --- /dev/null |
| +++ b/tools/perf/benchmarks/power.py |
| @@ -0,0 +1,16 @@ |
| +# Copyright 2014 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 import test |
| + |
| +from measurements import power_many_tabs |
| + |
| + |
| +# Only enabled on systems that allow power measurement. |
| +@test.Enabled('mavericks') |
|
qsr
2014/02/25 15:11:15
Should we have a new condition for power? Because
tonyg
2014/02/27 06:42:17
I've wanted this feature too in many contexts. The
|
| +class ManyTabs(test.Test): |
| + """Load 5 blank tabs and measure power usage.""" |
| + tag = 'many_blank_tabs' |
| + test = power_many_tabs.PowerManyTabs |
| + page_set = 'page_sets/blank_page.json' |
| + options = {'pageset_repeat_iters': 5} |