8 Python code profiling libraries and tools — every link checked and refreshed for 2026.
cProfile
Python's built-in whole-program deterministic profiler, part of the standard library's Debugging and Profiling tools.
FunctionTrace
A graphical Python profiler that provides a clear view of your application's execution while being low-overhead and easy to use.
Palanteer
A set of lean and efficient visual profiling and logging tools to improve the quality of software, for C++ and Python programs.
Pyinstrument
A Python call-stack profiler that shows you why your code is slow, helping you optimize and make it faster.
py-spy
A low-overhead sampling profiler for Python programs, safe to use against production code without restarting or modifying it.
SnakeViz
A browser-based graphical viewer for the output of Python's cProfile module, an alternative to the standard library pstats module.