Static methods

staticconstrainedMemory():Null<UInt64>

Gets the amount of memory available to the process (in bytes) based on limits imposed by the OS. If there is no such constraint returns null

staticfreeMemory():UInt64

Evaluates to the amount of free memory, in bytes.

staticgetPriority(pid:Int):Result<Int>

Evaluates to the priority of the process with the given pid.

staticgetRUsage():Result<RUsage>

Gets the resource usage measures for the current process.

staticloadAvg():Array<Float>

Evaluates to the load average.

staticresidentSetMemory(pid:Int):Result<UInt64>

Evaluates to the resident set size for the current process.

staticsetPriority(pid:Int, priority:Int):Result<NoData>

Sets the priority of the process with the given pid.

statictotalMemory():UInt64

Evaluates to the total amount of memory, in bytes.

staticuptime():Result<Float>

Evaluates to the current uptime.