CMemoryInfo#

class ikomia.utils.pyutils.CMemoryInfo#

Cross-platform functions to retrieve memory information.

Import

from ikomia.utils import CMemoryInfo

Methods

__init__(arg1)

Default constructor

get_available_memory(self)

Get current amount of available memory.

get_memory_load(self)

Get the current memory load.

get_total_memory(self)

Get total amount of memory installed on the machine.

Details

__init__((object)arg1) None :#

Default constructor

get_available_memory((CMemoryInfo)self) int :#

Get current amount of available memory.

Returns:

available amount of memory in MB

Return type:

int

get_memory_load((CMemoryInfo)self) int :#

Get the current memory load.

Returns:

memory load in percentage

Return type:

int

get_total_memory((CMemoryInfo)self) int :#

Get total amount of memory installed on the machine.

Returns:

total amount of memory in MB

Return type:

int