diff options
Diffstat (limited to 'tools/android/adb_profile_chrome/perf_controller.py')
-rw-r--r-- | tools/android/adb_profile_chrome/perf_controller.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/android/adb_profile_chrome/perf_controller.py b/tools/android/adb_profile_chrome/perf_controller.py index 96a077d..064300d 100644 --- a/tools/android/adb_profile_chrome/perf_controller.py +++ b/tools/android/adb_profile_chrome/perf_controller.py @@ -182,5 +182,10 @@ class PerfProfilerController(controllers.BaseController): open(json_file_name, 'w') as json_file: cmd = [perfhost_path, 'script', '-s', perf_script_path, '-i', perf_profile, '--symfs', symfs_dir, '--kallsyms', kallsyms] - subprocess.call(cmd, stdout=json_file, stderr=dev_null) + if subprocess.call(cmd, stdout=json_file, stderr=dev_null): + logging.warning('Perf data to JSON conversion failed. The result will ' + 'not contain any perf samples. You can still view the ' + 'perf data manually as shown above.') + return None + return json_file_name |