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 IAppResource

interface IAppResource
Extends com.amazon.apmf.IStandard An interface that can query the calling app’s current and peak resource usage. Built from IKeplerResourceStatsModuleV2::getAppResource().

Methods

getCurrentMemoryUsage()

IMemoryInfo* getCurrentMemoryUsage()
API to query the current memory usage of the calling application.

Returns

IMemoryInfo* instance of IMemoryInfo with the current memory usage.

Throws


getPeakMemoryUsage()

IMemoryInfo* getPeakMemoryUsage()
API to query the peak memory usage of the calling application.

Returns

IMemoryInfo* instance of IMemoryInfo with the peak memory usage.

Throws


Last modified on October 22, 2026