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()
API to query the current memory usage of the calling application.IMemoryInfo*getCurrentMemoryUsage()
Returns
IMemoryInfo*
instance of IMemoryInfo with the current memory usage.
Throws
NotSupportedError— if the caller of this API is not an application.MemoryDataNotAvailable— if the memory data is not available.SecurityError— if client is not allowed to query memory stats.
getPeakMemoryUsage()
API to query the peak memory usage of the calling application.IMemoryInfo*getPeakMemoryUsage()
Returns
IMemoryInfo*
instance of IMemoryInfo with the peak memory usage.
Throws
NotSupportedError— if the caller of this API is not an application.MemoryDataNotAvailable— if the memory data is not available.SecurityError— if client is not allowed to query memory stats.

