| Index: tools/perf/metrics/power.py
|
| diff --git a/tools/perf/metrics/power.py b/tools/perf/metrics/power.py
|
| index 0f33d2d41b19d751ae52f70c413578fe4e1c4798..e9df8f88a5b4cd938c7d5a95dbe4ef06f489b47c 100644
|
| --- a/tools/perf/metrics/power.py
|
| +++ b/tools/perf/metrics/power.py
|
| @@ -69,6 +69,9 @@ class PowerMetric(Metric):
|
| def Start(self, _, tab):
|
| self._browser = tab.browser
|
|
|
| + if self._platform.CanMeasureIdleWakeUps():
|
| + self._platform.StartMeasuringIdleWakeUps()
|
| +
|
| if not self._platform.CanMonitorPower():
|
| return
|
|
|
| @@ -81,6 +84,9 @@ class PowerMetric(Metric):
|
| self._running = True
|
|
|
| def Stop(self, _, tab):
|
| + if self._platform.CanMeasureIdleWakeUps():
|
| + self._platform.StopMeasuringIdleWakeUps()
|
| +
|
| if not self._platform.CanMonitorPower():
|
| return
|
|
|
|
|