def net_monitor_setup(root_path):
    if not myadb.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)

    init_path_vars(root_path)
    mutils.g_create_report_dir(root_path)
Exemple #2
0
def mem_monitor_procrank_setup():
    if not AdbUtils.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)

    init_path_vars(g_report_root_path)
    MUtils.g_create_report_dir(g_report_root_path)
def cpu_monitor_top_setup():
    if not AdbUtils.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)
    
    init_path_vars(g_report_root_path)
    MUtils.g_create_report_dir(g_report_root_path)
def dump_logcat_for_app_main(pkg_name, file_path):
    if not AdbUtils.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)
    
    filter_str = get_pids_filter_string(pkg_name)
    dump_logcat_by_process_id(filter_str, file_path)
def dump_logcat_for_app_main(pkg_name, file_path):
    if not AdbUtils.verify_adb_devices_connect():
        print 'Error, no adb devices connected!'
        exit(1)

    filter_str = get_pids_filter_string(pkg_name)
    dump_logcat_by_process_id(filter_str, file_path)
def pull_all_testing_logs():
    # the adb connection maybe disconnect when running the monkey
    if not AdbUtils.verify_adb_devices_connect():
        print 'Warn, no devices connected, NO files pulled!'
        return

    cmd_pull_logcat_log = 'adb pull %s %s' % (g_logcat_log_path_for_shell, g_log_dir_path_for_win)
    run_system_command(cmd_pull_logcat_log)
    cmd_pull_whitelist = 'adb pull %s %s' % (g_whitelist_file_path_for_shell, g_log_dir_path_for_win)
    run_system_command(cmd_pull_whitelist)

    run_system_command(build_command_pull_anr_file())
    run_system_command(build_command_pull_tombstone_file())
def mem_monitor_dumpsys_setup():
    if not AdbUtils.verify_adb_devices_connect():
        print 'No adb devices connected!'
        exit(1)
    init_path_vars(g_report_root_path)
def pull_captures():
    if not AdbUtils.verify_adb_devices_connect():
        print 'Warn, no devices connected, NO captures pulled!'
        return
    cmd = 'adb pull %s %s' % (g_captures_dir_path_for_shell, g_captures_dir_path_for_win)
    run_system_command(cmd)
Exemple #9
0
def mem_monitor_dumpsys_setup():
    if not AdbUtils.verify_adb_devices_connect():
        print 'No adb devices connected!'
        exit(1)
    init_path_vars(g_report_root_path)