{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"},{"label":"User Interfaces","url":"https://skillfed.io/packages/category/software-development-user-interfaces/2"}],"enrichment":{"capability":"tuna visualizes Python performance profiles in an interactive web interface, showing runtime and import-time profiling data with minimal dependencies.","skillfed_tags":["profiling","performance-analysis","visualization"],"use_cases":["Identify which functions consume the most CPU time in a Python application.","Analyze import-time performance to find slow module initialization.","Debug performance regressions by comparing profiles across code versions.","Visualize call hierarchies to understand which code paths dominate execution time.","Profile IPython/Jupyter notebooks using the tuna magic command."],"what_it_does":"tuna is a lightweight Python profile viewer that reads output from Python's built-in cProfile and importtime profilers and displays them in an interactive web interface. It was designed as a modern alternative to SnakeViz, focusing on accuracy: it only displays timing information that can be reliably reconstructed from profile data, avoiding the incorrect call-tree reconstructions that SnakeViz produces. The tool uses d3 and bootstrap for visualization and has no runtime dependencies, making it quick to install and run.\n\nYou generate a profile by running your Python code with cProfile or importtime, then pass the resulting file to tuna's command-line interface. tuna launches a web viewer showing the call tree, function timings, and performance bottlenecks. It also includes IPython magic commands for profiling code directly in notebooks, offering a drop-in replacement for the prun magic.","worth_installing":"Yes. tuna is actively maintained, has no runtime dependencies, supports current Python versions (3.10+), and solves a real problem\u2014accurate profile visualization\u2014that SnakeViz handles incorrectly. The GPLv3 license is a constraint for proprietary use but not a blocker for most development workflows. Install it if you need to understand where your Python code spends time."},"id":"tuna","links":{"html":"https://skillfed.io/packages/tuna","md":"https://skillfed.io/packages/tuna.md","pypi":"https://pypi.org/project/tuna/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-19","license_spdx":null,"license_treatment":"copyleft","name":"tuna","python_support":"supports_current","summary":"Visualize Python performance profiles"},"popularity":{"monthly_downloads":252687,"position":8537,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.15"}
