Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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


getMemoryRecord()

IMemoryRecord* 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.

Returns

IMemoryRecord* IMemoryRecord object

Throws


Last modified on October 29, 2026