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

Unified Diff: tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py

Issue 509043002: [Telemetry] Combine SysfsPlatformBackend into LinuxBasedPlatformBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/core/platform/power_monitor/monsoon_power_monitor.py
diff --git a/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py b/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py
index f349ff6fcbc245ac1afceb896629c1edde2dc343..b2bf0fdf20eeedce91773264f47c34351c28baef 100644
--- a/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py
+++ b/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py
@@ -8,7 +8,6 @@ import tempfile
import time
from telemetry.core import exceptions
-from telemetry.core.platform import android_sysfs_platform
from telemetry.core.platform.power_monitor import sysfs_power_monitor
from telemetry.core.platform.profiler import monsoon
@@ -44,9 +43,8 @@ def _MonitorPower(device, is_collecting, output):
json.dump(result, output)
class MonsoonPowerMonitor(sysfs_power_monitor.SysfsPowerMonitor):
- def __init__(self, device):
- super(MonsoonPowerMonitor, self).__init__(
- android_sysfs_platform.AndroidSysfsPlatform(device))
+ def __init__(self, _, platform_backend):
+ super(MonsoonPowerMonitor, self).__init__(platform_backend)
self._powermonitor_process = None
self._powermonitor_output_file = None
self._is_collecting = None

Powered by Google App Engine
This is Rietveld 408576698