Interface IMemoryStats
interface IMemoryStats
Extends com.amazon.apmf.IStandard
Base interface which defines memory related stats of a process
Methods
getUsedGpuMemoryKb()
i32 getUsedGpuMemoryKb()
Query Gpu memory usage in kilobytes that is currently being used
by the client invoking this API.
In Linux based system typically it means drm total memory.
Returns
i32
Gpu memory usage in kilobytes.
Throws
OutOfMemoryError— if device is out of memory
getMemoryRecord()
Creates a MemoryRecord interface which can help to query total amount of memory of different memory types currently being used by the client invoking this API.IMemoryRecord*getMemoryRecord()
Returns
IMemoryRecord*
IMemoryRecord object
Throws
OutOfMemoryError— if device is out of memory

