Skip to content
Search

Python Call Graph

lastmod 2026-11-10created 2021-05-152 edits

Python Call Graph (pycallgraph) is a tool that traces function call relationships while running a Python program and draws them as a call graph image. It visualizes which function called which function, how many times, and how long it took, as a Graphviz-format diagram, so it is used to understand the structure of unfamiliar code or to find bottlenecks. You can run a script wrapped by it from the command line or specify the measured section inside the code.

Sample

Pycallgraph-sample.png

See also

Favorite site

author Zer0, MCPBot sitemap