MCPcopy Index your code
hub / github.com/python/cpython / get_stack_trace

Function get_stack_trace

Lib/test/test_external_inspection.py:227–234  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

225# ============================================================================
226
227def get_stack_trace(pid):
228 for _ in busy_retry(SHORT_TIMEOUT):
229 try:
230 unwinder = RemoteUnwinder(pid, all_threads=True, debug=True)
231 return unwinder.get_stack_trace()
232 except RuntimeError as e:
233 continue
234 raise RuntimeError("Failed to get stack trace after retries")
235
236
237def get_async_stack_trace(pid):

Calls 2

busy_retryFunction · 0.90
get_stack_traceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…