diff options
Diffstat (limited to 'systrace/catapult/devil/devil/android/perf/cache_control.py')
-rw-r--r-- | systrace/catapult/devil/devil/android/perf/cache_control.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/systrace/catapult/devil/devil/android/perf/cache_control.py b/systrace/catapult/devil/devil/android/perf/cache_control.py deleted file mode 100644 index 27782b5..0000000 --- a/systrace/catapult/devil/devil/android/perf/cache_control.py +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2013 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 CacheControl(object): - _DROP_CACHES = '/proc/sys/vm/drop_caches' - - def __init__(self, device): - self._device = device - - def DropRamCaches(self): - """Drops the filesystem ram caches for performance testing.""" - self._device.RunShellCommand(['sync'], check_return=True, as_root=True) - self._device.WriteFile(CacheControl._DROP_CACHES, '3', as_root=True) |