Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / tools / perf / measurements / power.py
blob0300e5143249f78fc2cf4540bf6967627dc4a85f
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.
5 from metrics import power
6 from telemetry.page import page_test
8 class Power(page_test.PageTest):
9 def __init__(self):
10 super(Power, self).__init__('RunPowerPageInteractions')
11 self._power_metric = None
13 def WillStartBrowser(self, platform):
14 self._power_metric = power.PowerMetric(platform)
16 def DidNavigateToPage(self, page, tab):
17 self._power_metric.Start(page, tab)
19 def ValidateAndMeasurePage(self, page, tab, results):
20 self._power_metric.Stop(page, tab)
21 self._power_metric.AddResults(tab, results)