add process memory for processes using >1% memory

This commit is contained in:
Robin Appelman 2024-04-08 20:21:57 +02:00
commit 41f594cc41
6 changed files with 160 additions and 1 deletions

View file

@ -1,3 +1,4 @@
use procfs::ProcError;
use std::ffi::NulError;
use std::fmt::Write;
use std::num::{ParseFloatError, ParseIntError};
@ -35,6 +36,8 @@ pub enum Error {
InvalidStringData(#[from] Utf8Error),
#[error(transparent)]
InvalidCStringData(#[from] NulError),
#[error(transparent)]
Proc(#[from] ProcError),
#[error("Failed to query vfs stats")]
StatVfs,
#[cfg(target_os = "windows")]