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

Side by Side Diff: tools/telemetry/telemetry/internal/platform/android_platform_backend.py

Issue 1497743004: Remove run_pie from android/tools now that ICS support is deprecated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « tools/telemetry/bin/android/armeabi-v7a/run_pie.sha1 ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 logging 5 import logging
6 import os 6 import os
7 import re 7 import re
8 import shutil 8 import shutil
9 import stat 9 import stat
10 import subprocess 10 import subprocess
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 surface_stats_collector = None 52 surface_stats_collector = None
53 53
54 54
55 _DEVICE_COPY_SCRIPT_FILE = os.path.join( 55 _DEVICE_COPY_SCRIPT_FILE = os.path.join(
56 constants.DIR_SOURCE_ROOT, 'build', 'android', 'pylib', 56 constants.DIR_SOURCE_ROOT, 'build', 'android', 'pylib',
57 'efficient_android_directory_copy.sh') 57 'efficient_android_directory_copy.sh')
58 _DEVICE_COPY_SCRIPT_LOCATION = ( 58 _DEVICE_COPY_SCRIPT_LOCATION = (
59 '/data/local/tmp/efficient_android_directory_copy.sh') 59 '/data/local/tmp/efficient_android_directory_copy.sh')
60 60
61 61
62 def _SetupPrebuiltTools(device): 62 def _SetupPrebuiltTools(device):
nednguyen 2015/12/04 16:07:20 Kari: do we have a bug about removing this?
63 """Some of the android pylib scripts we depend on are lame and expect 63 """Some of the android pylib scripts we depend on are lame and expect
64 binaries to be in the out/ directory. So we copy any prebuilt binaries there 64 binaries to be in the out/ directory. So we copy any prebuilt binaries there
65 as a prereq.""" 65 as a prereq."""
66 66
67 # TODO(bulach): Build the targets for x86/mips. 67 # TODO(bulach): Build the targets for x86/mips.
68 device_tools = [ 68 device_tools = [
69 'file_poller', 69 'file_poller',
70 'forwarder_dist/device_forwarder', 70 'forwarder_dist/device_forwarder',
71 'memtrack_helper', 71 'memtrack_helper',
72 'md5sum_dist/md5sum_bin', 72 'md5sum_dist/md5sum_bin',
73 'purge_ashmem', 73 'purge_ashmem',
74 'run_pie',
75 ] 74 ]
76 75
77 host_tools = [ 76 host_tools = [
78 'bitmaptools', 77 'bitmaptools',
79 'md5sum_bin_host', 78 'md5sum_bin_host',
80 ] 79 ]
81 80
82 platform_name = platform.GetHostPlatform().GetOSName() 81 platform_name = platform.GetHostPlatform().GetOSName()
83 if platform_name == 'linux': 82 if platform_name == 'linux':
84 host_tools.append('host_forwarder') 83 host_tools.append('host_forwarder')
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 for process in psutil.process_iter(): 859 for process in psutil.process_iter():
861 try: 860 try:
862 if psutil.version_info >= (2, 0): 861 if psutil.version_info >= (2, 0):
863 if 'adb' in process.name(): 862 if 'adb' in process.name():
864 process.cpu_affinity([0]) 863 process.cpu_affinity([0])
865 else: 864 else:
866 if 'adb' in process.name: 865 if 'adb' in process.name:
867 process.set_cpu_affinity([0]) 866 process.set_cpu_affinity([0])
868 except (psutil.NoSuchProcess, psutil.AccessDenied): 867 except (psutil.NoSuchProcess, psutil.AccessDenied):
869 logging.warn('Failed to set adb process CPU affinity') 868 logging.warn('Failed to set adb process CPU affinity')
OLDNEW
« no previous file with comments | « tools/telemetry/bin/android/armeabi-v7a/run_pie.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698