Represents resource usage statistics for a process or thread. All time values are in milliseconds.
- cpuUserTime : Time.Millisecond.OffsetCPU time spent in user mode (milliseconds) 
- cpuSystemTime : Time.Millisecond.OffsetCPU time spent in kernel mode (milliseconds) 
- peakResidentSetSizeKb : UInt64Peak resident set size (max physical memory usage) in kilobytes 
- minorPageFaults : UInt64Number of minor (soft) page faults (no disk I/O) 
- majorPageFaults : UInt64Number of major (hard) page faults (disk I/O required) 
- swapOperations : UInt64Number of swap ins or swap outs 
- blockInputOps : UInt64Number of block input operations (disk reads) 
- blockOutputOps : UInt64Number of block output operations (disk writes) 
- messagesSent : UInt64Number of IPC messages sent 
- messagesReceived : UInt64Number of IPC messages received 
- signalsReceived : UInt64Number of signals received 
- voluntaryContextSwitches : UInt64Number of voluntary context switches (process yielded CPU) 
- involuntaryContextSwitches : UInt64Number of involuntary context switches (process preempted) 
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
A process identifier, represented by a numeric ID in UNIX systems (e.g. 1000).
- toUInt64 : UInt64The numeric process ID. 
Instances For
Equations
- Std.Internal.IO.Process.instInhabitedPId.default = { toUInt64 := default }
Instances For
Equations
Equations
- Std.Internal.IO.Process.instOrdPId.ord { toUInt64 := a } { toUInt64 := b } = (compare a b).then Ordering.eq
Instances For
Equations
- Std.Internal.IO.Process.instReprPId = { reprPrec := fun (u : Std.Internal.IO.Process.PId) => Repr.addAppParen (Std.Format.text "PId.mk " ++ repr u.toUInt64) }
Gets the title of the current process.
Instances For
Sets the title of the current process.
Equations
Instances For
Gets the current process id.
Equations
Instances For
Gets the current process parent id.
Equations
Instances For
Gets the current working directory.
Equations
- Std.Internal.IO.Process.getCwd = do let a ← Std.Internal.UV.System.cwd pure { toString := a }
Instances For
Changes the current working directory to a new one.
Equations
Instances For
Gets the scheduling priority of a process.
Equations
Instances For
Sets the scheduling priority of a process.
Equations
- Std.Internal.IO.Process.setPriority pid priority = Std.Internal.UV.System.osSetPriority pid.toUInt64 priority
Instances For
Retrieves resource usage statistics.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Returns the absolute path of the current executable.
Equations
Instances For
Returns the amount of free system memory in bytes.
Instances For
Returns the total system memory in bytes.
Instances For
Returns the constrained memory limit in bytes.
Instances For
Returns the available memory for allocation in bytes.