proxmox/proxmox-sys
Wolfgang Bumiller 42a155668e sys: change PidStat API
Rather than standalone functions, `PidStat` now provides a
`read_for_pid` and `parse` method. Both are public.
One side effect is that the documentation of PidStat's
contents are on the same page as the ways to retrieve it.

Additionally, we deprecate `read_proc_starttime` as it was
reading the entire contents to then filter out one value, in
order to promote caching.

The standalone `read_proc_pid_stat` method is now also
deprecated.

Once we add pid-fds the API will feel cleaner this way.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-14 12:01:06 +01:00
..
debian version bump 2020-01-02 14:42:28 +01:00
src sys: change PidStat API 2020-01-14 12:01:06 +01:00
Cargo.toml version bump 2020-01-02 14:42:28 +01:00