pub struct ProcReader { /* private fields */ }Implementations§
Source§impl ProcReader
impl ProcReader
pub fn new() -> ProcReader
pub fn new_with_custom_procfs(path: PathBuf) -> ProcReader
pub fn read_kernel_version(&self) -> Result<String>
pub fn read_stat(&self) -> Result<Stat>
pub fn read_meminfo(&self) -> Result<MemInfo>
pub fn read_vmstat(&self) -> Result<VmStat>
pub fn read_slabinfo(&self) -> Result<Vec<SlabInfo>>
pub fn read_disk_stats_and_fsinfo(&self) -> Result<DiskMap>
pub fn read_pid_stat(&self, pid: u32) -> Result<PidStat>
pub fn read_tid_stat(&self, tid: u32) -> Result<PidStat>
pub fn read_pid_mem(&self, pid: u32) -> Result<PidStatus>
pub fn read_pid_io(&self, pid: u32) -> Result<PidIo>
pub fn read_pid_cgroup(&self, pid: u32) -> Result<String>
pub fn read_pid_cmdline(&self, pid: u32) -> Result<Option<Vec<String>>>
pub fn read_pid_exe_path(&self, pid: u32) -> Result<String>
pub fn read_all_pids(&self) -> Result<PidMap>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProcReader
impl !RefUnwindSafe for ProcReader
impl Send for ProcReader
impl !Sync for ProcReader
impl Unpin for ProcReader
impl UnwindSafe for ProcReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more