Index: tools/telemetry/telemetry/internal/platform/power_monitor/__init__.py |
diff --git a/tools/telemetry/telemetry/internal/platform/power_monitor/__init__.py b/tools/telemetry/telemetry/internal/platform/power_monitor/__init__.py |
deleted file mode 100644 |
index 4c3cf4532cbe3859ba6d966d185a45b76ef7d041..0000000000000000000000000000000000000000 |
--- a/tools/telemetry/telemetry/internal/platform/power_monitor/__init__.py |
+++ /dev/null |
@@ -1,50 +0,0 @@ |
-# 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. |
- |
-import logging |
- |
-from telemetry.core import exceptions |
- |
- |
-class PowerMonitor(object): |
- """A power profiler. |
- |
- Provides an interface to register power consumption during a test. |
- """ |
- def __init__(self): |
- self._monitoring = False |
- |
- def CanMonitorPower(self): |
- """Returns True iff power can be monitored asynchronously via |
- StartMonitoringPower() and StopMonitoringPower(). |
- """ |
- return False |
- |
- def CanMeasurePerApplicationPower(self): |
- """Returns True if the power monitor can measure power for the target |
- application in isolation. False if power measurement is for full system |
- energy consumption.""" |
- return False |
- |
- def _CheckStart(self): |
- assert not self._monitoring, "Already monitoring power." |
- self._monitoring = True |
- |
- def _CheckStop(self): |
- assert self._monitoring, "Not monitoring power." |
- self._monitoring = False |
- |
- def StartMonitoringPower(self, browser): |
- """Starts monitoring power utilization statistics. |
- |
- See Platform#StartMonitoringPower for the arguments format. |
- """ |
- raise NotImplementedError() |
- |
- def StopMonitoringPower(self): |
- """Stops monitoring power utilization and returns collects stats |
- |
- See Platform#StopMonitoringPower for the return format. |
- """ |
- raise NotImplementedError() |