Header menu logo fable-electron-docs-api

ProcessMetric Type

Constructors

Constructor Description

ProcessMetric(pid, type, cpu, creationTime, memory, ?serviceName, ?name, ?sandboxed, ?integrityLevel)

Full Usage: ProcessMetric(pid, type, cpu, creationTime, memory, ?serviceName, ?name, ?sandboxed, ?integrityLevel)

Parameters:
    pid : 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
pid : 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

this.cpu

Full Usage: this.cpu

CPU usage of the process.

this.creationTime

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.

this.integrityLevel

Full Usage: this.integrityLevel

⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ One of the following values:

this.memory

Full Usage: this.memory

Memory information for the process.

this.name

Full Usage: this.name

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

this.pid

Full Usage: this.pid

Process id of the process.

this.sandboxed

Full Usage: this.sandboxed

⚠ OS Compatibility: WIN ✔ | MAC ✔ | LIN ❌ | MAS ❌ Whether the process is sandboxed on OS level.

this.serviceName

Full Usage: this.serviceName

The non-localized name of the process.

this.type

Full Usage: this.type

Process type. One of the following values:

Type something to start searching.