Description
Tuna is a Python profile viewer for performance analysis. It reads profiles produced by Python's profiler and shows where a program spends its time. It handles both runtime profiles and import profiles, and it is inspired by SnakeViz but aims to be lighter and faster, with minimal dependencies built on d3 and Bootstrap. Tuna is installed from the Python Package Index with pip. It also includes a tuna line and cell magic for IPython, so you can view a profile from a notebook or an interactive session. Its main design choice is to show only the part of the call tree that can be recovered from profile data. Python profiles store parent data rather than the full timed call tree, so Tuna does not try to rebuild it, and that avoids the wrong timings SnakeViz can show. The README includes a side-by-side example of SnakeViz output and Tuna output to make the difference visible.…
Highlights
- Viewer for runtime and import profiles
- Shows only timings that the profile data supports
- Installs from PyPI with pip
- IPython line and cell magics
- Built on d3 and Bootstrap with minimal dependencies
Ratings & Reviews
No ratings yet
Be the first to rate Tuna.
People also visit
Tuna FAQ
What is tuna?
A Python profile viewer for performance analysis. It takes a profile file and shows where the program spends its time.
How do I install tuna?
Install it with pip from the Python Package Index. The IPython magics come with the package.
Why does tuna not show the whole call tree?
Python profiles store only parent data, so the full timed call tree cannot be rebuilt from them. Tuna shows only the part that can be deduced, which avoids the wrong timings SnakeViz can display.
Can tuna read import profiles?
Yes. It handles both runtime profiles and import profiles.
What are the best Tuna alternatives?
Popular alternatives to Tuna include Speedscope, TFM Tui and Python Web PDB. See all Tuna alternatives







