gprof2dot
Converts profiling output to a dot graph. (by jrfonseca)
tuna
:fish: Python profile viewer (by nschloe)
Our great sponsors
gprof2dot | tuna | |
---|---|---|
5 | 4 | |
3,095 | 1,263 | |
- | - | |
4.8 | 0.0 | |
about 2 months ago | about 2 months ago | |
Python | Python | |
GNU Lesser General Public License v3.0 only | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gprof2dot
Posts with mentions or reviews of gprof2dot.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-30.
-
Visualizing Pythons process?
It also lets you run tools like https://github.com/jrfonseca/gprof2dot on the profiling results to generate comprehensive flowcharts (call graph) for your program.
-
Map a python project
The closes thing I can think of is gprof2dot. It's used for visual representations after profiling code: https://github.com/jrfonseca/gprof2dot
- Scanning Function calls in a script - is there a tool?
- Is there a way I can visualize all the function calls made while running the project(C++) in a graphical way?
-
Profiling Flask application to improve performance
There are a few tools to visualise the profile dumps. Some of them providing a full GUI for navigatig within your profiling results ( RunSnakeRun), some of them represent the analysis result as a Graph (gprof2dot). I stopped on snakeviz, which is a browser based visualizer. It is easy installed using pip install snakeviz, and then simply run with snakeviz profile_dir. The result looks something like this, and you can dive in to each of the visual parts to see its more close detalization, which is in my opinion is super cool and handy.
tuna
Posts with mentions or reviews of tuna.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-18.
-
Is AWS Lambda Cold Start Still an Issue?
Every minor detail matters and adds to the total import time as part of the cold start. We need to optimize our code and imports. If you use Python, you can analyze your code with a tool like Tuna and optimize your libraries (perhaps replace slower ones) and your imports.
- Make Python Run Faster
- Scanning Function calls in a script - is there a tool?
-
Creating a Python CLI with Go(lang)-comparable startup times
I started to examine the output of python -X importtime -m gefyra 2> import.log just to check the imports. There is an awesome tool to analyze the Python imports: tuna (see: https://github.com/nschloe/tuna). tuna allows analyzing the import times from the log. Run it like so tuna import.log. It opens a browser window and visualizes the import times. With that I was able to manually move all imports to the functions in which they are needed (and bring in some other optimizations). This greatly violates PEP 8 (https://peps.python.org/pep-0008/#imports) but leads to very fast startup times.
What are some alternatives?
When comparing gprof2dot and tuna you can also consider the following projects:
tracy - Frame profiler
SnakeViz - An in-browser Python profile viewer
flask-profiler - a flask profiler which watches endpoint calls and tries to make some analysis.
Altair - Declarative statistical visualization library for Python
massif-visualizer - Visualizer for Valgrind Massif data files
ggplot - ggplot port for python
pytest-austin - Python Performance Testing with Austin
seaborn - Statistical data visualization in Python
pprof - pprof is a tool for visualization and analysis of profiling data
vincent
gperftools - Main gperftools repository
Apache Superset - Apache Superset is a Data Visualization and Data Exploration Platform [Moved to: https://github.com/apache/superset]