Crate libproc

Source
Expand description

libproc is a library for getting information about running processes on Mac and Linux.

Not all methods are available on both Operating Systems yet, but more will be made cross-platform over time.

Get information (such as name, path, process info, fd) about running processes by pid, process type, etc.

At the moment these methods have been implemented, most of which have examples in their docs:

Modules§

bsd_info
Get information specific to BSD/Darwin on macos BSD specific information - very macos specific
file_info
Get information about a process’s use of different types of file descriptors Information about Files and File Descriptors used by processes
kmesg_buffer
Read messages from the Kernel Message Buffer Get messages from the kernel message buffer
net_info
Get information about a processes use of network, sockets etc. Information about Network usage by a process
pid_rusage
Get information about resource usage of processes Information about Process Resource Usage - added in Mac OS X 10.9
proc_pid
Get information about processes using mainly the pid Get basic information about processes by PID
processes
List processes by type, path or by type and path.
task_info
Get information about a process’s BSD Tasks Information about Tasks - very macos specific
thread_info
Get information about threads within a process Information about Threads running inside processes
work_queue_info
Get information about Work Queues Information about Work Queues - very macos specific