path: android-platform-system-extras_10.0.0+r36+ds-2.1/simpleperf/scripts/run_simpleperf_without_usb_connection.py
def stop_recording(args):
    adb = AdbHelper()
    result = adb.run(['shell', 'pidof', 'simpleperf'])
    if not result:
        log_warning('No simpleperf process on device. The recording has ended.')
