ProcessHealthStats


public final class ProcessHealthStats
extends Object

java.lang.Object
   ↳ android.os.health.ProcessHealthStats


Keys for HealthStats returned from HealthStats.getStats(int) with the UidHealthStats.STATS_PROCESSES key.

Summary

Constants

int MEASUREMENT_ANR_COUNT

Key for a measurement of the number of ANRs that happened in this process.

int MEASUREMENT_CRASHES_COUNT

Key for a measurement of the number of crashes that happened in this process.

int MEASUREMENT_FOREGROUND_MS

Key for a measurement of the number of milliseconds this process spent with an activity in the foreground.

int MEASUREMENT_STARTS_COUNT

Key for a measurement of the number of times this process was started for any reason.

int MEASUREMENT_SYSTEM_TIME_MS

Key for a measurement of number of millseconds the CPU spent running in kernel space for this process.

int MEASUREMENT_USER_TIME_MS

Key for a measurement of number of millseconds the CPU spent running in user space for this process.

Inherited methods

Constants

MEASUREMENT_ANR_COUNT

Added in API level 24
public static final int MEASUREMENT_ANR_COUNT

Key for a measurement of the number of ANRs that happened in this process.

Constant Value: 30005 (0x00007535)

MEASUREMENT_CRASHES_COUNT

Added in API level 24
public static final int MEASUREMENT_CRASHES_COUNT

Key for a measurement of the number of crashes that happened in this process.

Constant Value: 30004 (0x00007534)

MEASUREMENT_FOREGROUND_MS

Added in API level 24
public static final int MEASUREMENT_FOREGROUND_MS

Key for a measurement of the number of milliseconds this process spent with an activity in the foreground.

Constant Value: 30006 (0x00007536)

MEASUREMENT_STARTS_COUNT

Added in API level 24
public static final int MEASUREMENT_STARTS_COUNT

Key for a measurement of the number of times this process was started for any reason.

Constant Value: 30003 (0x00007533)

MEASUREMENT_SYSTEM_TIME_MS

Added in API level 24
public static final int MEASUREMENT_SYSTEM_TIME_MS

Key for a measurement of number of millseconds the CPU spent running in kernel space for this process.

Constant Value: 30002 (0x00007532)

MEASUREMENT_USER_TIME_MS

Added in API level 24
public static final int MEASUREMENT_USER_TIME_MS

Key for a measurement of number of millseconds the CPU spent running in user space for this process.

Constant Value: 30001 (0x00007531)