android_webview/tools/run_simpleperf.py
def RunSimplePerf(perf_data_path, args):
    """Runs the simple perf commandline."""
    cmd = ['third_party/android_ndk/simpleperf/app_profiler.py',
           '--perf_data_path', perf_data_path,
           '--skip_collect_binaries']
    if args.system_wide:
      cmd.append('--system_wide')
    else:
      cmd.extend([
          '--app', 'org.chromium.webview_shell', '--activity',
          '.TelemetryActivity'
      ])

    if args.record_options:
      cmd.extend(['--record_options', args.record_options])

    logging.info("Profile has started.")
    subprocess.check_call(cmd)
    logging.info("Profile has finished, processing the results...")
Runs the simple perf commandline.
Runs the simple perf commandline.
Runs the simple perf commandline .
def RunSimplePerf(perf_data_path, args):
    cmd = ['third_party/android_ndk/simpleperf/app_profiler.py',
           '--perf_data_path', perf_data_path,
           '--skip_collect_binaries']
    if args.system_wide:
      cmd.append('--system_wide')
    else:
      cmd.extend([
          '--app', 'org.chromium.webview_shell', '--activity',
          '.TelemetryActivity'
      ])
    if args.record_options:
      cmd.extend(['--record_options', args.record_options])
    logging.info("Profile has started.")
    subprocess.check_call(cmd)
    logging.info("Profile has finished, processing the results...")
def RunSimplePerf ( perf_data_path , args ) : cmd = [ 'third_party/android_ndk/simpleperf/app_profiler.py' , '--perf_data_path' , perf_data_path , '--skip_collect_binaries' ] if args . system_wide : cmd . append ( '--system_wide' ) else : cmd . extend ( [ '--app' , 'org.chromium.webview_shell' , '--activity' , '.TelemetryActivity' ] ) if args . record_options : cmd . extend ( [ '--record_options' , args . record_options ] ) logging . info ( "Profile has started." ) subprocess . check_call ( cmd ) logging . info ( "Profile has finished, processing the results..." )
Runs the simple perf commandline.
Runs the simple perf commandline .
"""Runs the simple perf commandline."""
perf_data_path
args