#proc #process #system #Linux

procinfo

A library for accessing Linux process and system information

10 unstable releases (3 breaking)

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

#8 in Operating systems

Download history 166/week @ 2018-06-13 223/week @ 2018-06-20 371/week @ 2018-06-27 333/week @ 2018-07-04 365/week @ 2018-07-11 330/week @ 2018-07-18 291/week @ 2018-07-25 352/week @ 2018-08-01 279/week @ 2018-08-08 228/week @ 2018-08-15 225/week @ 2018-08-22 203/week @ 2018-08-29 299/week @ 2018-09-05

1,783 downloads per month
Used in 22 crates (12 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//cwd
  • /proc//limits
  • /proc//mountinfo
  • /proc//stat
  • /proc//statm
  • /proc//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

~785KB
~18K SLoC