CMemoryInfo

class ikomia.utils.pyutils.CMemoryInfo

Cross-platform functions to retrieve memory information.

Import

from ikomia.utils import CMemoryInfo

Methods

__init__(arg1)

Default constructor

availableMemory(self)

Get current amount of available memory.

memoryLoad(self)

Get the current memory load.

totalMemory(self)

Get total amount of memory installed on the machine.

Details

__init__((object)arg1) None :

Default constructor

availableMemory((CMemoryInfo)self) int :

Get current amount of available memory.

Returns

available amount of memory in MB

Return type

int

memoryLoad((CMemoryInfo)self) int :

Get the current memory load.

Returns

memory load in percentage

Return type

int

totalMemory((CMemoryInfo)self) int :

Get total amount of memory installed on the machine.

Returns

total amount of memory in MB

Return type

int