記憶體管理

記憶體管理#

get_active_memory()

取得目前使用中的記憶體位元組數。

get_array_buffer_size(*args)

Get the size of the buffers backing arrays in bytes.

get_peak_memory()

取得使用記憶體的峰值位元組數。

reset_peak_memory()

將記憶體峰值重設為 0。

get_cache_memory()

取得快取大小(位元組)。

set_memory_limit(limit)

設定記憶體上限。

set_cache_limit(limit)

設定可釋放快取上限。

set_wired_limit(limit)

設定 wired 大小上限。

clear_cache()

清除記憶體快取。