electronjs.org-new/docs/latest/api/structures/process-metric.md

37 строки
1.3 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

---
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:
* `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.
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.
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:
* `untrusted`
* `low`
* `medium`
* `high`
* `unknown`