ProcessMetric Type
Constructors
| Constructor |
Description
|
Full Usage:
ProcessMetric(pid, type, cpu, creationTime, memory, ?serviceName, ?name, ?sandboxed, ?integrityLevel)
Parameters:
int
-
Process id of the process.
type : Type
-
Process type. One of the following values:
cpu : CPUUsage
-
CPU usage of the process.
creationTime : float
-
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
-
Memory information for the process.
?serviceName : string
-
The non-localized name of the process.
?name : string
-
The name of the process. Examples for utility: Audio Service, Content Decryption Module Service, Network Service, Video Capture, etc.
?sandboxed : bool
-
⚠ OS Compatibility: WIN ✔ | MAC ✔ | LIN ❌ | MAS ❌ || Whether the process is
sandboxed on OS level.
?integrityLevel : IntegrityLevel
-
⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ || One of the following
values:
Returns: ProcessMetric
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.cpu
|
CPU usage of the process. |
Full Usage:
this.creationTime
|
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. |
Full Usage:
this.integrityLevel
|
⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ One of the following values: |
Full Usage:
this.memory
|
Memory information for the process. |
Full Usage:
this.name
|
The name of the process. Examples for utility: Audio Service, Content Decryption Module Service, Network Service, Video Capture, etc. |
Full Usage:
this.pid
|
Process id of the process. |
Full Usage:
this.sandboxed
|
⚠ OS Compatibility: WIN ✔ | MAC ✔ | LIN ❌ | MAS ❌ Whether the process is sandboxed on OS level. |
Full Usage:
this.serviceName
|
The non-localized name of the process. |
Full Usage:
this.type
|
Process type. One of the following values: |
fable-electron-docs-api