getAppMetrics

abstract external fun getAppMetrics(): ReadonlyArray<ProcessMetric>(source)

Array of ProcessMetric objects that correspond to memory and CPU usage statistics of all the processes associated with the app.

!NOTE cpu.percentCPUUsage and cpu.idleWakeupsPerSecond are averages over the time since the last call to app.getAppMetrics(), and each call starts a new measurement interval for every process at once. Other code in the main process, including dependencies, shares those intervals. See CPUUsage for more details.