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

Unified Diff: tools/telemetry/telemetry/core/platform/android_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/android_platform_backend.py
diff --git a/tools/telemetry/telemetry/core/platform/android_platform_backend.py b/tools/telemetry/telemetry/core/platform/android_platform_backend.py
index ccde44df5f73f741966d538abba2851beaf26b23..a879a7faac548863ce80acec77685ae2af9f82fa 100644
--- a/tools/telemetry/telemetry/core/platform/android_platform_backend.py
+++ b/tools/telemetry/telemetry/core/platform/android_platform_backend.py
@@ -122,3 +122,13 @@ class AndroidPlatformBackend(platform_backend.PlatformBackend):
def GetOSName(self):
return 'android'
+
+ def CanFlushIndividualFilesFromSystemCache(self):
+ return False
+
+ def FlushEntireSystemCache(self):
+ cache_control = perf_tests_helper.CacheControl(self._adb.Adb())
+ cache_control.DropRamCaches()
+
+ def FlushSystemCacheForDirectory(self, directory, ignoring=None):
+ raise NotImplementedError()
« no previous file with comments | « tools/telemetry/telemetry/core/platform/__init__.py ('k') | tools/telemetry/telemetry/core/platform/cros_platform_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698