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