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():Null<UInt64>

Evaluates to the amount of free memory, in bytes. Returns null when unknown.

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():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():Null<UInt64>

Evaluates to the total amount of memory, in bytes. Returns null when unknown.

staticuptime():Result<Float>

Evaluates to the current uptime.