Open hectorcanto opened 2 years ago
I'm trying to run memory_profiler against pytest but no prompt or logging is shown (while it does record a dat file for the plot).
memory_profiler
dat
I tried:
python -m memory_profiler pytest mprof run pytest mprof run python -m pytest pytest
with @profile, with pytest -s to avoid prompt capture or
@profile
pytest -s
fp = open('memory_profiler.log', 'w+') @profile(stream=fp)
I added the decorator, either in a single test or in a function being used by that single test.
Relevant information:
Any suggestions? Thanks for any help
I'm trying to run
memory_profiler
against pytest but no prompt or logging is shown (while it does record adat
file for the plot).I tried:
with
@profile
, withpytest -s
to avoid prompt capture orI added the decorator, either in a single test or in a function being used by that single test.
Relevant information:
Any suggestions? Thanks for any help