Memory usage functions.
Get lower bound of memory usage of an object.
Takes into account strings, numpy arrays and scipy CSR sparse matrices, descends into sequences, mappings and objects.
Parameters: | obj : any object
usage : dict
name : str
traversal_order : list, internal
level : int, internal
|
---|---|
Returns: | usage : int
|
Print memory usage dictionary.
Parameters: | usage : dict
order_by : ‘usage’, ‘name’, ‘kind’, ‘nrefs’, ‘traversal_order’, or ‘level’
direction : ‘up’ or ‘down’
print_key : bool
|
---|