Added in API level 24

ProcessHealthStats


class ProcessHealthStats
kotlin.Any
   ↳ android.os.health.ProcessHealthStats

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

Summary

Constants
static Int

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

static Int

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

static Int

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

static Int

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

static Int

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

static Int

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

Constants

MEASUREMENT_ANR_COUNT

Added in API level 24
static val MEASUREMENT_ANR_COUNT: Int

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

Value: 30005

MEASUREMENT_CRASHES_COUNT

Added in API level 24
static val MEASUREMENT_CRASHES_COUNT: Int

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

Value: 30004

MEASUREMENT_FOREGROUND_MS

Added in API level 24
static val MEASUREMENT_FOREGROUND_MS: Int

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

Value: 30006

MEASUREMENT_STARTS_COUNT

Added in API level 24
static val MEASUREMENT_STARTS_COUNT: Int

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

Value: 30003

MEASUREMENT_SYSTEM_TIME_MS

Added in API level 24
static val MEASUREMENT_SYSTEM_TIME_MS: Int

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

Value: 30002

MEASUREMENT_USER_TIME_MS

Added in API level 24
static val MEASUREMENT_USER_TIME_MS: Int

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

Value: 30001