foxes.utils.print_mem(obj, min_csize=0, max_csize=None, pre_str='OBJECT SIZE')[source]

Prints the memory consumption of a model and its components

ParmetersΒΆ

obj: object

The object to be analyzed

min_csize: int

The minimal size of a component for being shown

max_csize: int, optional

The maximal allowed size of a component

pre_str: str

String to be printed before