MemoryProfile#

class MemoryProfile(fast_shape, ft_shape, float_nbytes, complex_nbytes, integer_nbytes)[source]#

Bases: MatchingMemoryUsage

Memory estimator for methods with uniform array requirements.

Attributes

MemoryProfile.base_complex

Number of shared complex arrays

MemoryProfile.base_float

Number of shared real arrays

MemoryProfile.fork_complex

Number of complex arrays per fork

MemoryProfile.fork_float

Number of real arrays per fork

Methods

MemoryProfile.base_usage()

Return the base memory usage in bytes.

MemoryProfile.per_fork()

Return the memory usage per fork in bytes.