Expand description
Idiomatic and safe wrappers for libproc
of macOS.
Structs§
- proc_
bsdinfo - proc_
fdinfo - proc_
taskallinfo - proc_
taskinfo - rusage_
info_ v0 - rusage_
info_ v1 - rusage_
info_ v2 - rusage_
info_ v3 - rusage_
info_ v4
Traits§
- Rusage
Flavor proc_pid_rusage
can return different versionedrusage_info_v*
structs.
Functions§
- all_
pids - Fetch pids for all processes running in system.
- name
- Fetch process name for
pid
provided. - pgrp_
only_ pids - Fetch pids for processes running in system in a given group.
- pid_cwd
- Fetch current working directory for process with
pid
provided. - pid_
path - Fetch executable absolute path for process with
pid
provided. - pid_
rusage - Return resource usage information for the given pid, which can be a live process or a zombie.
- ppid_
only_ pids - Fetch pids for processes running in system with the given PPID.
- ruid_
only_ pids - Fetch pids for processes running in system with the given RUID.
- task_
all_ info - Returns filled
proc_taskallinfo
struct forpid
given. - task_
info - Returns filled
proc_taskinfo
struct forpid
given. - tty_
only_ pids - Fetch pids for processes running in system attached to a given TTY.
- uid_
only_ pids - Fetch pids for processes running in system with the given UID.
- version
- Returns the
libproc
version as a tuple of(major, minor)
parts. - vnode_
path_ info - Returns filled
proc_vnodepathinfo
struct for pid given.