capytaine.tools.memory_monitor module

class capytaine.tools.memory_monitor.MemoryMonitor[source]

Bases: Thread

Monitor the memory usage in a separate thread. from : https://joblib.readthedocs.io/en/stable/auto_examples/parallel_generator.html#sphx-glr-auto-examples-parallel-generator-py

get_memory()[source]

Get memory of a process and its children.

get_memory_peak()[source]
run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.