pyinstrument
pyan
pyinstrument | pyan | |
---|---|---|
11 | 4 | |
6,125 | 312 | |
- | - | |
7.7 | 3.7 | |
16 days ago | 3 months ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 only |
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.
pyinstrument
-
How to profile an asynchronous FastAPI server
I was wondering if you have any synchronous routes in your app? We have an open issue regarding those and would love some ideas for solutions :)
- How to expand to full traceback
-
Graphical Python Profiler
Is there something about the actual profiler that differs from existing tools like pyinstrument [1] or py-spy [2]? I know pyinstrument has various output options and I wonder if it could potentially output something readable by the Firefox Profiler tool.
[1] : https://github.com/joerick/pyinstrument
-
DRF Performance (How bad is this code?)
I would highly recommend looking into pyinstrument to profile your requests. I find the reports to be very readable, and it's very easy to setup with Django.
- Looking for app that visualizes python program
-
What are some python micro optimisations that you can/may *actually use* in your codebase?
I like to use pyinstrument for profiling. Uses stat sampling so it's quicker and builds a easy to grok report.
- (How to) profile python code?
-
Profiling async code with pyinstrument 4.0
Hello! I just released pyinstrument 4.0 on PyPI. pyinstrument was my first successful open-source package and I love seeing how much use it's getting in the community.
-
Getting started on profiling with python
PyInstrument, compared to cProfile or Yappi, it's a lot easier to use and requires much less configuration.
-
Looking Beyond Nox
Run pytest, under pyinstrument, and generate a webpage that presents performance data, in addition to a separate junit xml report.
pyan
-
Ask HN: Anyone use a code to mindmap/flowchart tool?
Are you looking for something like a call graph?
There's pyan3 [1] which although doesn't support python 3.7+, I've still had luck with v1.0.4 which works better for me than its most recent version with python 3.11, but there can be some weird issues though depending on your code style.
A quick search also turned up crabviz [2] which has support for more languages than just python.
[1] https://github.com/Technologicat/pyan
[2] https://github.com/chanhx/crabviz
- Looking for app that visualizes python program
- GitHub - Technologicat/pyan: Static call graph generator. The official Python 3 version. Development repo.
- Pyan: Static call graph generator. The official Python 3 version
What are some alternatives?
py-spy - Sampling profiler for Python programs
SmoothStream - Webcam, PiCamera streaming over the network with Python made easy.
yappi - Yet Another Python Profiler, but this time multithreading, asyncio and gevent aware.
mcpyrate - Advanced macro expander and language lab for Python.
memray - Memray is a memory profiler for Python
hunter - Hunter is a flexible code tracing toolkit.
austin - Python frame stack sampler for CPython
snoop - A powerful set of Python debugging tools, based on PySnooper
Bazel - a fast, scalable, multi-language and extensible build system
pydeps - Python Module Dependency graphs
junit2html
heartrate - Simple real time visualisation of the execution of a Python program.