pyinstrument
pyinstrument copied to clipboard
🚴 Call stack profiler for Python. Shows you why your code is slow!
Hello! ## Pull request overview * Add a radio button in the HTML renderer that allows viewing the time as percentages of the total time. * Small change in `Frame.js`...
Related to the discussion in #169, I've found that the memory overhead of using `pyinstrument` to profile long-running (several hours run time) scripts using the command-line interface with the default...
Idea: an 'adaptive' interval, that pyinstrument could raise the interval as the profiler session progresses, such that you always have e.g. 0.1% accuracy. e.g. start each session at 1ms accuracy,...
version:pyinstrument 4.2.0 pypi_0 pypi Python 3.7.13 from pyinstrument import Profiler profiler = Profiler() profiler.start() ... profiler.stop() profiler.print() raise ModuleNotFoundError: No module named 'pyinstrument.low_level.stat_profile'
I'm aware that the pyinstrument middleware is using `django.utils.deprecation.MiddlewareMixin` therefore is compatible with both `MIDDLEWARE` and the old `MIDDLEWARE_CLASSES`. However, since the `MIDDLEWARE_CLASSES` setting was officially deprecated since Django 1.10,...
Supercedes #166. This refactor allows pyinstrument to collect information other than the code object that was executing during the profiling. Currently, this function is only used for the class name,...
Hi, `__tracebackhide__` is used in [pytest](https://doc.pytest.org/en/latest/example/simple.html#writing-well-integrated-assertion-helpers) and [IPython ](https://github.com/ipython/ipython/pull/12359)to tell tooling that a frame should be hidden from the user when looking at stacktraces. It would be helpful if users...
**version: 4.1.1** I've been able to write a pytest scenario reproducing the error: app code: ```py #!/usr/bin/env python3 from typing import Callable from fastapi import FastAPI from pyinstrument import Profiler...
I am using pyinstrument for profiling some ML/NLU specific tasks and noticed that when running profiling on function with a lot of simple computations inside memory consumption stedealy increases. For...
I used pyinstrument today to find bottlenecks in my optical simulation code, and found it overall very helpful. The HTML report is very usable and looks great! One feature I...