bloomberg / pytest-memray

pytest plugin for easy integration of memray memory profiler
https://pytest-memray.readthedocs.io/en/latest/
Apache License 2.0
354 stars 25 forks source link

Disable the caplog fixture by default #29

Open gaborbernat opened 2 years ago

gaborbernat commented 2 years ago

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 part of the peak memory usage, though in practice after every log that record would be removed. This feature can be disabled for pytest via -p no:logging. At the very least we should document this under gotcha's or even better provide a marker that does this?