2021-10-01 01:29:33 +03:00
|
|
|
---
|
|
|
|
title: "ProcessMetric Object"
|
|
|
|
description: ""
|
|
|
|
slug: process-metric
|
|
|
|
hide_title: false
|
|
|
|
---
|
|
|
|
|
|
|
|
# ProcessMetric Object
|
|
|
|
|
|
|
|
* `pid` Integer - Process id of the process.
|
2022-02-01 22:43:56 +03:00
|
|
|
* `type` string - Process type. One of the following values:
|
2021-10-01 01:29:33 +03:00
|
|
|
* `Browser`
|
|
|
|
* `Tab`
|
|
|
|
* `Utility`
|
|
|
|
* `Zygote`
|
|
|
|
* `Sandbox helper`
|
|
|
|
* `GPU`
|
|
|
|
* `Pepper Plugin`
|
|
|
|
* `Pepper Plugin Broker`
|
|
|
|
* `Unknown`
|
2022-02-01 22:43:56 +03:00
|
|
|
* `serviceName` string (optional) - The non-localized name of the process.
|
|
|
|
* `name` string (optional) - The name of the process.
|
2021-10-01 01:29:33 +03:00
|
|
|
Examples for utility: `Audio Service`, `Content Decryption Module Service`, `Network Service`, `Video Capture`, etc.
|
|
|
|
* `cpu` [CPUUsage](latest/api/structures/cpu-usage.md) - CPU usage of the process.
|
2022-02-01 22:43:56 +03:00
|
|
|
* `creationTime` number - Creation time for this process.
|
2021-10-01 01:29:33 +03:00
|
|
|
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.
|
|
|
|
* `memory` [MemoryInfo](latest/api/structures/memory-info.md) - Memory information for the process.
|
2022-02-01 22:43:56 +03:00
|
|
|
* `sandboxed` boolean (optional) _macOS_ _Windows_ - Whether the process is sandboxed on OS level.
|
|
|
|
* `integrityLevel` string (optional) _Windows_ - One of the following values:
|
2021-10-01 01:29:33 +03:00
|
|
|
* `untrusted`
|
|
|
|
* `low`
|
|
|
|
* `medium`
|
|
|
|
* `high`
|
|
|
|
* `unknown`
|