MCPcopy Create free account
hub / github.com/bloomberg/pystack / process_remote

Function process_remote

src/pystack/__main__.py:284–295  ·  view source on GitHub ↗
(parser: argparse.ArgumentParser, args: argparse.Namespace)

Source from the content-addressed store, hash-verified

282
283
284def 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
298def format_psinfo_information(psinfo: Dict[str, Any]) -> str:

Callers

nothing calls this directly

Calls 1

print_threadFunction · 0.85

Tested by

no test coverage detected