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

Side by Side Diff: trunk/src/build/android/chrome_profiler/perf_controller.py

Issue 330713002: Revert 276779 "Move adb_profile_chrome under tools/android/" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 subprocess 7 import subprocess
8 import sys 8 import sys
9 import tempfile 9 import tempfile
10 10
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 perf_script_path = os.path.join(constants.DIR_SOURCE_ROOT, 177 perf_script_path = os.path.join(constants.DIR_SOURCE_ROOT,
178 'tools', 'telemetry', 'telemetry', 'core', 'platform', 'profiler', 178 'tools', 'telemetry', 'telemetry', 'core', 'platform', 'profiler',
179 'perf_vis', 'perf_to_tracing.py') 179 'perf_vis', 'perf_to_tracing.py')
180 json_file_name = os.path.basename(perf_profile) 180 json_file_name = os.path.basename(perf_profile)
181 with open(os.devnull, 'w') as dev_null, \ 181 with open(os.devnull, 'w') as dev_null, \
182 open(json_file_name, 'w') as json_file: 182 open(json_file_name, 'w') as json_file:
183 cmd = [perfhost_path, 'script', '-s', perf_script_path, '-i', 183 cmd = [perfhost_path, 'script', '-s', perf_script_path, '-i',
184 perf_profile, '--symfs', symfs_dir, '--kallsyms', kallsyms] 184 perf_profile, '--symfs', symfs_dir, '--kallsyms', kallsyms]
185 subprocess.call(cmd, stdout=json_file, stderr=dev_null) 185 subprocess.call(cmd, stdout=json_file, stderr=dev_null)
186 return json_file_name 186 return json_file_name
OLDNEW
« no previous file with comments | « trunk/src/build/android/chrome_profiler/main.py ('k') | trunk/src/build/android/chrome_profiler/perf_controller_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698