diff options
Diffstat (limited to 'simpleperf/scripts/run_simpleperf_without_usb_connection.py')
-rwxr-xr-x | simpleperf/scripts/run_simpleperf_without_usb_connection.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/simpleperf/scripts/run_simpleperf_without_usb_connection.py b/simpleperf/scripts/run_simpleperf_without_usb_connection.py index 19700ee8..a3524f67 100755 --- a/simpleperf/scripts/run_simpleperf_without_usb_connection.py +++ b/simpleperf/scripts/run_simpleperf_without_usb_connection.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # # Copyright (C) 2018 The Android Open Source Project # @@ -32,8 +32,7 @@ import subprocess import sys import time -from simpleperf_utils import AdbHelper, get_target_binary_path, log_warning - +from utils import AdbHelper, get_target_binary_path, log_warning def start_recording(args): adb = AdbHelper() @@ -60,7 +59,6 @@ def start_recording(args): adb.run(['shell', 'cat', '/data/local/tmp/simpleperf_output']) sys.exit(subproc.returncode) - def stop_recording(args): adb = AdbHelper() result = adb.run(['shell', 'pidof', 'simpleperf']) @@ -75,7 +73,6 @@ def stop_recording(args): adb.check_run(['pull', '/data/local/tmp/perf.data', args.perf_data_path]) print('The recording data has been collected in %s.' % args.perf_data_path) - def main(): parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) @@ -98,6 +95,5 @@ def main(): args = parser.parse_args() args.func(args) - if __name__ == '__main__': main() |