Austin is a lightweight statistical profiler designed to analyze the execution of Python applications running on CPython. Written in C, it samples Python stack frames by inspecting the interpreter's virtual memory. This approach enables performance analysis without modifying application source code or introducing instrumentation. The utility supports execution time profiling, memory profiling, and applications running across multiple processes. Developers can examine asynchronous workloads and identify performance bottlenecks within complex applications. Profiling results can be processed through FlameGraph, Speedscope, Visual Studio Code, and custom analysis tools. It also provides an MCP server and query API for integration with AI-assisted development workflows.
Features
- Non-intrusive CPython stack frame sampling without source code instrumentation
- Low-overhead statistical profiling of Python execution time and memory usage
- Built-in support for profiling multi-process and asynchronous Python applications
- Profiling data integration with FlameGraph, Speedscope, and Visual Studio Code
- Binary profiling output for processing through external analysis applications
- MCP server and query API integration for AI-assisted performance analysis