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

Side by Side Diff: build/android/devil/android/perf/perf_control.py

Issue 1332603002: [Android] Move perf utilities into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: redirections for v8 Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import atexit 5 import atexit
6 import logging 6 import logging
7 7
8 from devil.android import device_errors 8 from devil.android import device_errors
9 9
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 """ 147 """
148 if self._have_mpdecision: 148 if self._have_mpdecision:
149 script = 'stop mpdecision' if force_online else 'start mpdecision' 149 script = 'stop mpdecision' if force_online else 'start mpdecision'
150 self._device.RunShellCommand(script, check_return=True, as_root=True) 150 self._device.RunShellCommand(script, check_return=True, as_root=True)
151 151
152 if not self._have_mpdecision and not self._AllCpusAreOnline(): 152 if not self._have_mpdecision and not self._AllCpusAreOnline():
153 logging.warning('Unexpected cpu hot plugging detected.') 153 logging.warning('Unexpected cpu hot plugging detected.')
154 154
155 if force_online: 155 if force_online:
156 self._ForEachCpu('echo 1 > "$CPU/online"') 156 self._ForEachCpu('echo 1 > "$CPU/online"')
OLDNEW
« no previous file with comments | « build/android/devil/android/perf/cache_control.py ('k') | build/android/devil/android/perf/perf_control_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698