Represents resource usage statistics for a process or thread. All time values are in milliseconds.
- userTime : UInt64
- systemTime : UInt64
- maxRSS : UInt64
- ixRSS : UInt64
- idRSS : UInt64
- isRSS : UInt64
- minFlt : UInt64
- majFlt : UInt64
- nSwap : UInt64
- inBlock : UInt64
- outBlock : UInt64
- msgSent : UInt64
- msgRecv : UInt64
- signals : UInt64
- voluntaryCS : UInt64
- involuntaryCS : UInt64
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Gets the title of the current process.
On Linux and macOS, throws IO.Error.resourceExhausted in a process whose main is not a compiled
Lean main, such as the lean executable, since only a compiled main sets up the title.
Sets the title of the current process.
On Linux and macOS the title is stored in the memory of the process's original command line, so a
longer title is cut to fit it, possibly in the middle of a UTF-8 character. There it throws
IO.Error.resourceExhausted in a process whose main is not a compiled Lean main, as
getProcessTitle does.
Gets the system uptime in seconds.
Gets the process ID of the current process.
Gets the parent process ID of the current process.
Gets information about the system's CPUs.
Gets the current working directory.
Changes the current working directory.
Gets the path to the current user's home directory.
Gets the path to the temporary directory.
Gets a subset of the password file entry for the current user.
Gets the group with the given ID, or none if there is no such group. Throws
IO.Error.invalidArgument for an ID that does not fit the operating system's group ID type, and
IO.Error.unsupportedOperation on Windows.
Unsets an environment variable.
Gets the hostname of the machine.
Gets the scheduling priority of a process.
Throws IO.Error.invalidArgument for a process ID that does not fit the operating system's process
ID type.
Sets the scheduling priority of a process.
Throws IO.Error.invalidArgument if the priority is outside the range from -20 (highest) to 19
(lowest), or for a process ID that does not fit the operating system's process ID type.
Gets information about the operating system.
Gets the current high-resolution time in nanoseconds.
Generates cryptographically secure random bytes.
Throws IO.Error.resourceExhausted if more than 2^31 - 1 bytes are requested.
Retrieves resource usage statistics.
Returns the absolute path of the current executable.
Returns the amount of free system memory in bytes.
Returns the total system memory in bytes.
Returns the constrained memory limit in bytes.
Returns the available memory for allocation in bytes.