diff options
author | owenlin@chromium.org <owenlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-28 17:46:33 +0000 |
---|---|---|
committer | owenlin@chromium.org <owenlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-28 17:46:33 +0000 |
commit | 6aec09b8ad4dd6dcd11babae85322d5208a464c6 (patch) | |
tree | 1794251eb00cf835ae44b4d7064c16291cdf060b | |
parent | 1454aa1b40454296872dfe4036e3b0cfe2824764 (diff) | |
download | chromium_src-6aec09b8ad4dd6dcd11babae85322d5208a464c6.zip chromium_src-6aec09b8ad4dd6dcd11babae85322d5208a464c6.tar.gz chromium_src-6aec09b8ad4dd6dcd11babae85322d5208a464c6.tar.bz2 |
Returns empty dict for GetIOStats on CrOS platforms.
BUG=252912
TEST=Manully test the code on link
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/17591003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209177 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | tools/telemetry/docs/telemetry.core.platform.cros_platform_backend.html | 4 | ||||
-rw-r--r-- | tools/telemetry/telemetry/core/platform/cros_platform_backend.py | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tools/telemetry/docs/telemetry.core.platform.cros_platform_backend.html b/tools/telemetry/docs/telemetry.core.platform.cros_platform_backend.html index 91f060c..9733dd8 100644 --- a/tools/telemetry/docs/telemetry.core.platform.cros_platform_backend.html +++ b/tools/telemetry/docs/telemetry.core.platform.cros_platform_backend.html @@ -51,6 +51,8 @@ </dl> <hr> Methods defined here:<br> +<dl><dt><a name="CrosPlatformBackend-GetIOStats"><strong>GetIOStats</strong></a>(self, pid)</dt></dl> + <dl><dt><a name="CrosPlatformBackend-GetOSName"><strong>GetOSName</strong></a>(self)</dt></dl> <dl><dt><a name="CrosPlatformBackend-GetRawDisplayFrameRateMeasurements"><strong>GetRawDisplayFrameRateMeasurements</strong></a>(self)</dt></dl> @@ -67,8 +69,6 @@ Methods defined here:<br> <hr> Methods inherited from <a href="telemetry.core.platform.linux_platform_backend.html#LinuxPlatformBackend">telemetry.core.platform.linux_platform_backend.LinuxPlatformBackend</a>:<br> -<dl><dt><a name="CrosPlatformBackend-GetIOStats"><strong>GetIOStats</strong></a>(self, pid)</dt></dl> - <dl><dt><a name="CrosPlatformBackend-GetMemoryStats"><strong>GetMemoryStats</strong></a>(self, pid)</dt></dl> <dl><dt><a name="CrosPlatformBackend-GetSystemCommitCharge"><strong>GetSystemCommitCharge</strong></a>(self)</dt></dl> diff --git a/tools/telemetry/telemetry/core/platform/cros_platform_backend.py b/tools/telemetry/telemetry/core/platform/cros_platform_backend.py index 1475172..68ecc34 100644 --- a/tools/telemetry/telemetry/core/platform/cros_platform_backend.py +++ b/tools/telemetry/telemetry/core/platform/cros_platform_backend.py @@ -35,5 +35,10 @@ class CrosPlatformBackend(linux_platform_backend.LinuxPlatformBackend): except AssertionError: return '' + def GetIOStats(self, pid): + # There is no '/proc/<pid>/io' file on CrOS platforms + # Returns empty dict as it does in PlatformBackend. + return {} + def GetOSName(self): return 'chromeos' |