Memory Management

Memory Management#

get_active_memory()

Get the actively used memory in bytes.

get_array_buffer_size(*args)

Get the size of the buffers backing arrays in bytes.

get_peak_memory()

Get the peak amount of used memory in bytes.

reset_peak_memory()

Reset the peak memory to zero.

get_cache_memory()

Get the cache size in bytes.

set_memory_limit(limit)

Set the memory limit.

set_cache_limit(limit)

Set the free cache limit.

set_wired_limit(limit)

Set the wired size limit.

clear_cache()

Clear the memory cache.