Configuration#
This plugin provides a clean minimal set of command line options that are added to pytest. The complete list of command line options is:
--memrayActivate memray tracking.
--most-allocations=MOST_ALLOCATIONSShow the N tests that allocate most memory (N=0 for all).
--hide-memray-summaryHide the memray summary at the end of the execution.
--memray-bin-pathPath where to write the memray binary dumps (by default a temporary folder).
--memray-bin-prefixPrefix to use for the binary dump (by default a random UUID4 hex)
--stacks=STACKSShow the N most recent stack entries when showing tracebacks of memory allocations
--nativeInclude native frames when showing tracebacks of memory allocations (will be slower)
--trace-python-allocatorsRecord allocations made by the Pymalloc allocator (will be slower)
memray(bool)Activate memray tracking.
most-allocations(string)Show the N tests that allocate most memory (N=0 for all).
hide_memray_summary(bool)Hide the memray summary at the end of the execution.
stacks(int)Show the N most recent stack entries when showing tracebacks of memory allocations
native(bool)Include native frames when showing tracebacks of memory allocations (will be slower)
trace_python_allocators(bool)Record allocations made by the Pymalloc allocator (will be slower)