Pyinstrument

Latest version: v5.0.0

Safety actively analyzes 688803 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

4.7.3

- Fix a bug introduced in 4.7.0 which would cause the profiler to crash when profiling code with unusual locals, notably some pytest extensions (332)
- Fix a bug that causes pyinstrument to fail to import packages like `glom` on Python 3.12 or later, which mutate the locals() dict. (336)
- Fix a bug that caused a `UnicodeDecodeError` on some platforms (330)
- Fix a DivideByZero error that occurs in some situations (335)
- The IPython integration takes greater step to ensure a clean profile output, by ensuring internal frames are trimmed before printing. (321)

4.7.2

- Add CPython 3.13 wheels
- Fix a bug that caused the HTML output to fail to render in some browser contexts (328)

4.7.0

- Adds a new, convenient API for [profiling chunks of Python code](https://pyinstrument.readthedocs.io/en/latest/guide.html#profile-a-specific-chunk-of-code)! You can now profile simply using a `with` block, or a function/method decorator. This will profile the code and print a short readout into the terminal. (327)
- Adds new, lower overhead timing options. Pyinstrument calls timers on every Python function call, which is fine on systems with fast timing available, but it adds significant overhead on systems that require a syscall for each, such as some Docker environments. Pyinstrument will now detect slow timers present a warning with two choices. You can enable a 'timing thread', which offloads the timing workload from the profiled thread, or, if you're happy with lower resolution, you can opt to use a 'coarse' timer, which is provided on some Linux systems. (273)
- Alt-click rows in the HTML output to collapse/expand the whole tree (325)
- Adds a `flat` argument to the console output, to present a flat list of functions (294)
- Adds a Litestar example config and docs (284)
- Preliminary Python 3.13 support (322)

4.6.0

- Adds a feature `-c`, which allows profiling code directly from the command line, like `python -c`. (271)
- Adds a convenience method [`Profiler.write_html`](https://pyinstrument.readthedocs.io/en/latest/reference.html#pyinstrument.Profiler.write_html), for writing HTML output to a file directly. (266)

4.5.3

- Fix a problem in the packaging process that prevented upload to PyPI

4.5.2

- Show the program name in the header of the HTML output (260)
- Improve program name capture through resilience to other programs modifying sys.argv (258)
- Add support for Python 3.12 (246)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.