10 unstable releases (3 breaking)

Uses old Rust 2015

0.4.2 Jun 25, 2017
0.4.1 May 11, 2017
0.4.0 Apr 30, 2017
0.3.1 Nov 10, 2016
0.1.1 Aug 29, 2015

#477 in Unix APIs

Download history 2131/week @ 2023-12-04 3736/week @ 2023-12-11 3387/week @ 2023-12-18 1149/week @ 2023-12-25 2540/week @ 2024-01-01 2215/week @ 2024-01-08 2022/week @ 2024-01-15 2476/week @ 2024-01-22 2361/week @ 2024-01-29 2020/week @ 2024-02-05 3482/week @ 2024-02-12 2332/week @ 2024-02-19 3156/week @ 2024-02-26 3793/week @ 2024-03-04 3476/week @ 2024-03-11 6119/week @ 2024-03-18

16,673 downloads per month
Used in 60 crates (15 directly)

MIT/Apache

99KB
1.5K SLoC

procinfo

Build Status

Documentation

A Rust library for reading information from /proc, the Linux process information psuedo-filesystem. procinfo provides a simple interface for inspecting process and system information on Linux.

Status

The goal is that procinfo will provide interfaces for all of the files in /proc, currently the following interfaces are provided:

  • /proc/loadavg
  • /proc/<pid>/cwd
  • /proc/<pid>/limits
  • /proc/<pid>/mountinfo
  • /proc/<pid>/stat
  • /proc/<pid>/statm
  • /proc/<pid>/status
  • /proc/sys/fs/file-max
  • /proc/net/dev

procinfo requires Rust 1.13 or later.

Contributing

Contributions will be gladly accepted for new /proc file parsers. In addition to parsers, help is needed testing procinfo on uncommon, old, bleeding edge, containerized, and namespaced kernels. If you find that any of the documentation is misleading, incomplete, or insufficient, please file an issue!

License

procinfo is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2015 Dan Burkert.

Dependencies

~715KB
~14K SLoC