I know memory_profiler is more of a debugging / profiling while in development, but is there thought on adding functionality to help benchmark memory in CI or testing? For example, calling memory_usage or @profile with an arg such as max_mem would stop execution via raising an exception if a specified max memory usage is reached.
I've implemented this for my project by doing something like this
I know memory_profiler is more of a debugging / profiling while in development, but is there thought on adding functionality to help benchmark memory in CI or testing? For example, calling
memory_usage
or@profile
with an arg such asmax_mem
would stop execution via raising an exception if a specified max memory usage is reached.I've implemented this for my project by doing something like this