Esc

resident

procedureextensionexperimental2 overloadsSource
  • macOS: resident works on macOS
  • Linux: resident works on Linux
  • Windows: resident works on Windows
  • Wasm: resident works on Wasm

overload 1

resident :: () -> int

Resident set of this process in KiB, from /proc/self/status (-1 elsewhere).

overload 2

resident :: (pid: s32) -> (rss: int, peak: int)

The "VmRSS" and "VmHWM" lines of /proc/<pid>/status, in KiB.

See also