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

Unified Diff: tools/telemetry/telemetry/core/platform/sysfs_platform.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
« no previous file with comments | « tools/telemetry/telemetry/core/platform/proc_supporting_platform_backend_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/sysfs_platform.py
diff --git a/tools/telemetry/telemetry/core/platform/sysfs_platform.py b/tools/telemetry/telemetry/core/platform/sysfs_platform.py
deleted file mode 100644
index c5c95168f7d66398bdf9e3a837ac0fdf157b5086..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/core/platform/sysfs_platform.py
+++ /dev/null
@@ -1,34 +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.
-
-class SysfsPlatform(object):
- """A platform-specific utility class for running shell commands and properly
- gathering c-state data.
- """
- def RunShellCommand(self, command):
- """Run command on this particular shell.
-
- Args:
- A command string to be executed in the shell.
-
- Returns:
- A string containing the results of the command.
- """
- raise NotImplementedError()
-
- @staticmethod
- def ParseStateSample(sample):
- """Parse a single c-state residency sample.
-
- Args:
- sample: A sample of c-state residency times to be parsed. Organized as
- a dictionary mapping CPU name to a string containing all c-state
- names, the times in each state, the latency of each state, and the
- time at which the sample was taken all separated by newlines.
- Ex: {'cpu0': 'C0\nC1\n5000\n2000\n20\n30\n1406673171'}
-
- Returns:
- Dictionary associating a c-state with a time.
- """
- raise NotImplementedError()
« no previous file with comments | « tools/telemetry/telemetry/core/platform/proc_supporting_platform_backend_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698