(parser: argparse.ArgumentParser, args: argparse.Namespace)
| 282 | |
| 283 | |
| 284 | def process_remote(parser: argparse.ArgumentParser, args: argparse.Namespace) -> None: |
| 285 | if not args.block and args.native_mode != NativeReportingMode.OFF: |
| 286 | parser.error("Native traces are only available in blocking mode") |
| 287 | |
| 288 | for thread in get_process_threads( |
| 289 | args.pid, |
| 290 | stop_process=args.block, |
| 291 | native_mode=args.native_mode, |
| 292 | locals=args.locals, |
| 293 | method=StackMethod.ALL if args.exhaustive else StackMethod.AUTO, |
| 294 | ): |
| 295 | print_thread(thread, args.native_mode) |
| 296 | |
| 297 | |
| 298 | def format_psinfo_information(psinfo: Dict[str, Any]) -> str: |
nothing calls this directly
no test coverage detected