{"repo":"joerick/pyinstrument","free":true,"listed":false,"github":"https://github.com/joerick/pyinstrument","clone":"git clone https://github.com/joerick/pyinstrument.git","description":"🚴 Call stack profiler for Python. Shows you why your code is slow!","language":"Python","stars":8001,"topics":["python","django","profiler","performance","profile","async"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"pyinstrument ============ Documentation Pyinstrument is a Python profiler. A profiler is a tool to help you optimize your code - make it faster. To get the biggest speed increase you should focus on the slowest part of your program. Pyinstrument helps you find it! ☕️ Not sure where to start? Check out this video tutorial from calmcode.io! Installation ------------ pip install pyinstrument Pyinstrument supports Python 3.8+. To run Pyinstrument from a git checkout, there's a build step. Take a look at Contributing for more info. Documentation ------------- To learn how to use pyinstrument, or to check the reference, head to the documentation. Known issues ------------ - Profiling code inside a Docker container can cause some strange results, because the gettimeofday syscall that pyinstrument uses is slow in that environment. See #83 - When using pyinstrument script.py where script.py contains a class serialized with pickle , you might encounter errors because the serialisation machinery doesn't know where main is. See this issue for workarounds Changelog --------- v5.1.3 29 July 2026 - Fixed Django middleware so PYINSTRUMENT SHOW CALLBACK is respected when PYINSTRUMENT PROFILE DIR is configured, allowing profiles to be selectively written to disk (#452). - Fixed Jupyter’s %%pyinstrument magic so console-specific render options—including time=percent of total, flat, short mode, color, and Unicode settings—are correctly applied to text output (#446). - Fixed long program and comm","default_branch":null,"files":null,"tree":[],"storefront":"/r/joerick","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/joerick/pyinstrument/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."}