PublicShow sourceprocps.pl -- Get process statistics from Linux /proc

Source procps_stat(-Stat:dict) is det
Source procps_stat(+PID, -Stat:dict) is det
Source procps_thread_stat(+Thread, -Stat:dict) is det
Get data from the stat file of the current process, the process identified by PID or the Prolog thread identified by Thread. In all cases, this returns a dict tagged stat with the field values as defined by man 5 proc.
Errors
- existence_error(source_sink, _) if the system does not provide the /proc filesystem.
Source procps_status(-Status:dict) is det
Source procps_status(+PID, -Status:dict) is det
Get the data from /proc/self/status as a Prolog dict.
To be done
- Not all fields are currently translated.