ProcessMetric

external interface ProcessMetric(source)

Properties

Link copied to clipboard
abstract external var cpu: CPUUsage

CPU usage of the process. Its percentCPUUsage and idleWakeupsPerSecond are averages over the time since the previous call to the API returning this object.

Link copied to clipboard
abstract external var creationTime: Double

Creation time for this process. The time is represented as number of milliseconds since epoch. Since the pid can be reused after a process dies, it is useful to use both the pid and the creationTime to uniquely identify a process.

Link copied to clipboard

One of the following values:

Link copied to clipboard
abstract external var memory: MemoryInfo

Memory information for the process.

Link copied to clipboard
abstract external var name: String?

The name of the process. Examples for utility: Audio Service, Content Decryption Module Service, Network Service, Video Capture, etc.

Link copied to clipboard
abstract external var pid: Double

Process id of the process.

Link copied to clipboard
abstract external var sandboxed: Boolean?

Whether the process is sandboxed on OS level.

Link copied to clipboard
abstract external var serviceName: String?

The non-localized name of the process.

Link copied to clipboard
abstract external var type: ProcessMetricType

Process type. One of the following values: