electron/docs/api/structures/process-metric.md

26 lines
850 B
Markdown
Raw Normal View History

2017-05-16 00:41:45 +00:00
# ProcessMetric Object
* `pid` Integer - Process id of the process.
* `type` String - Process type. One of the following values:
* `Browser`
* `Tab`
* `Utility`
* `Zygote`
* `Sandbox helper`
* `GPU`
* `Pepper Plugin`
* `Pepper Plugin Broker`
* `Unknown`
2017-05-26 15:36:51 +00:00
* `cpu` [CPUUsage](cpu-usage.md) - CPU usage of the process.
* `creationTime` Number - 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.
* `sandboxed` Boolean (optional) _macOS_ _Windows_ - Whether the process is sandboxed on OS level.
* `integrityLevel` String (optional) _Windows_ - One of the following values:
* `untrusted`
* `low`
* `medium`
* `high`
* `unknown`