Interface: MemoryInfo


CloudControl Pro 9 Docs / device / MemoryInfo

Interface: MemoryInfo

device.MemoryInfo

Information you can retrieve about the available memory through memoryInfo.

Table of contents

Properties

Properties

availMem

availMem: number

The available memory on the system. This number should not be considered absolute: due to the nature of the kernel, a significant portion of this memory is actually in use and needed for the overall system to run well.


lowMemory

lowMemory: boolean

如果为true,则表示系统内存不足。

Set to true if the system considers itself to currently be in a low memory situation.


threshold

threshold: number

The threshold of availMem at which we consider memory to be low and start killing background services and other non-extraneous processes.


totalMem

totalMem: number

The total memory accessible by the kernel. This is basically the RAM size of the device, not including below-kernel fixed allocations like DMA buffers, RAM for the baseband CPU, etc.