Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: tools/telemetry/telemetry/internal/platform/power_monitor/__init__.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698