{"repo":"nschloe/tuna","free":true,"listed":false,"github":"https://github.com/nschloe/tuna","clone":"git clone https://github.com/nschloe/tuna.git","description":":fish: Python profile viewer","language":"Python","stars":1597,"topics":["python","pypi","profile","browser","profiler"],"license":"GPL-3.0","category":"dev-tools","readme_excerpt":"Performance analysis for Python. tuna is a modern, lightweight Python profile viewer inspired by SnakeViz. It handles runtime and import profiles, has minimal dependencies, uses d3 and bootstrap, and avoids certain errors present in SnakeViz (see below) and is faster, too. Create a runtime profile with or an import profile with and show it with Why tuna doesn't show the whole call tree The whole timed call tree cannot be retrieved from profile data. Python developers made the decision to only store parent data in profiles because it can be computed with little overhead. To illustrate, consider the following program. The root process ( main ) calls a() which spends 4 seconds in c() and 1 second in d() . main also calls b() which calls a() , this time spending 1 second in c() and 4 seconds in d() . The profile, however, will only store that c() spent a total of 5 seconds when called from a() , and likewise d() . The information that the program spent more time in c() when called in root - a() - c() than when called in root - b() - a() - c() is not present in the profile. tuna only displays the part of the timed call tree that can be deduced from the profile. SnakeViz, on the other hand, tries to construct the entire call tree, but ends up providing lots of wrong timings. :------------------------------------------------------------: :-------------------------------------------------------------: SnakeViz output. Wrong. tuna output. Only shows what can be retrieved from the prof","default_branch":null,"files":null,"tree":[],"storefront":"/r/nschloe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nschloe/tuna/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}