pytest-memray
pytest-memray copied to clipboard
pytest plugin for easy integration of memray memory profiler
Blocked on https://github.com/bloomberg/memray/issues/170, which is blocked on https://github.com/bloomberg/memray/pull/138
## Feature Request Pytest can discover and run unittests but pytest-memray does not work on these. An example: https://github.com/ChaoticRoman/pytest-monitor-example/tree/memray-example There is an exactly same issue with alternative pytest memory profiler...
Handle parametrized tests requiring differing memory limits. Currently, these tests need to be duplicated but we could use a fixture to apply dynamic memory limit or allow limit memory to...
## Feature Request Perhaps it will be useful if you can compare if tests are not using more memory after new changes.
When profiling a service that generates logs pytest by default automatically collects all log records. This makes the memory profile not true to real life as all log lines are...
## Bug Report **Current Behavior** The plugin produces an empty output when running tests with [pytest-xdist](https://github.com/pytest-dev/pytest-xdist). **Input Code** ```python a = [] def something(): for i in range(10_000): a.append(i) def...
This should probably be documented both in the documentation and in the report that gets printed out.
## Feature Request I've got some scripts using memray that run some critical code 100,000 times, I use this in the following way: ```console mkdir -p .profiles PYTHONMALLOC=malloc memray run...
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.12 to 1.8.14. Release notes Sourced from pypa/gh-action-pypi-publish's releases. v1.8.14 🛠️ Internal Dependencies Nothing changed feature-wise. The only notable update is that the underlying container runtime now...
option to count only memory used in current thread / limit_memory("10MB", current_thread_only=True),
## Feature Request Currently `limit_memory` will count the allocations made in other threads (if I understood it right). I want an option to count only the memory allocations made on...