Rust library for reading the Linux procfs filesystem
OTHER License
Bot releases are visible (Hide)
Published by eminence almost 5 years ago
New features:
Process::root()
, and better documentation for related methods (#59)Bug fixes:
starttime
, guest_time
, and cguest_time
fields have a fixed datatype (#58)Published by eminence almost 5 years ago
New features:
read_tcp_table
and read_udp_table
are now public, which can be used when your procfs mount isn't in the normal /proc
location. (#57)Process::new_with_root
, which can be used to create a process from an arbitrary /proc/<pid>
path (#56)Published by eminence almost 5 years ago
New features:
mode
field to FDInfo
structpid
field to the Process
structFixes:
wrap_io_error
in Process::fd()
to better capture the path involved in case of an IO errorPublished by eminence almost 5 years ago
New features:
Bug fixes:
Published by eminence almost 5 years ago
New features:
net::unix()
).Copy
and Clone
for the process::Io
structCopy
for the Limit
and LimitValue
structs.Process::stat()
to get stat infoProcess::statm()
to get memory stat infoOther changes:
The following free functions are deprecated:
cpuinfo()
has been replaced with CpuInfo::new()
cpu_pressure()
has been replaced with CpuPressure::new()
io_pressure()
has been replaced with IoPressure::new()
memory_pressure()
has been replaced with MemoryPressure::new()
Bug fixes:
println!
in the cpuinfo()
function. Oops!i32
to u32
StatFlags
constantsNew features:
/proc/vmstat
/proc/pid/oom_score
/proc/pid/mountinfo
Bug fixes:
New features:
dev_status()
to return network interface statsOther changes:
all_processes()
encounters an internal error while constructing a process, it will be returned (instead of being ignored)