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

Function print_call_graph

Lib/asyncio/graph.py:267–276  ·  view source on GitHub ↗

Print the async call graph for the current task or the provided Future.

(
    future: futures.Future | None = None,
    /,
    *,
    file: io.Writer[str] | None = None,
    depth: int = 1,
    limit: int | None = None,
)

Source from the content-addressed store, hash-verified

265 return '\n'.join(buf)
266
267def print_call_graph(
268 future: futures.Future | None = None,
269 /,
270 *,
271 file: io.Writer[str] | None = None,
272 depth: int = 1,
273 limit: int | None = None,
274) -> None:
275 """Print the async call graph for the current task or the provided Future."""
276 print(format_call_graph(future, depth=depth, limit=limit), file=file)

Callers

nothing calls this directly

Calls 1

format_call_graphFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…