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

Unified Diff: tools/telemetry/telemetry/core/platform/posix_platform_backend.py

Issue 20766003: [Telemetry] Add the ability to flush the system file cache to platform. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simpler Android support Created 7 years, 5 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/posix_platform_backend.py
diff --git a/tools/telemetry/telemetry/core/platform/posix_platform_backend.py b/tools/telemetry/telemetry/core/platform/posix_platform_backend.py
index 248f4d5d53eeaca26500776ceb03201f2c5d1c44..e3c60ace394979b6c86bc5c2eaebbf9e499e497a 100644
--- a/tools/telemetry/telemetry/core/platform/posix_platform_backend.py
+++ b/tools/telemetry/telemetry/core/platform/posix_platform_backend.py
@@ -6,10 +6,10 @@ import subprocess
from collections import defaultdict
-from telemetry.core.platform import platform_backend
+from telemetry.core.platform import desktop_platform_backend
-class PosixPlatformBackend(platform_backend.PlatformBackend):
+class PosixPlatformBackend(desktop_platform_backend.DesktopPlatformBackend):
# This is an abstract class. It is OK to have abstract methods.
# pylint: disable=W0223
@@ -60,3 +60,5 @@ class PosixPlatformBackend(platform_backend.PlatformBackend):
command = self._GetPsOutput(['command'], pid)
return command[0] if command else None
+ def GetFlushUtilityName(self):
+ return 'clear_system_cache'
« no previous file with comments | « tools/telemetry/telemetry/core/platform/platform_backend.py ('k') | tools/telemetry/telemetry/core/platform/proc_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698