pub fn read_stats(&self) -> Option<CPUStat> {
        let kernelstats_or_not = KernelStats::new();
        if let Ok(res_cputime) = kernelstats_or_not {
            return Some(CPUStat {
                cputime: res_cputime.total,
            });
        }
        None
    }
/// Reads content from /proc/stat and extracts the stats of the whole CPU topology.
Reads content from /proc/stat and extracts the stats of the whole CPU topology.
Reads content from / proc / stat and extracts the stats of the whole CPU topology .
pub fn read_stats(&self) -> Option<CPUStat> {
        let kernelstats_or_not = KernelStats::new();
        if let Ok(res_cputime) = kernelstats_or_not {
            return Some(CPUStat {
                cputime: res_cputime.total,
            });
        }
        None
    }
pub fn read_stats ( & self ) -> Option < CPUStat > { let kernelstats_or_not = KernelStats :: new ( ) ; if let Ok ( res_cputime ) = kernelstats_or_not { return Some ( CPUStat { cputime : res_cputime . total , } ) ; } None }
Reads content from /proc/stat and extracts the stats of the whole CPU topology.
Reads content from / proc / stat and extracts the stats of the whole CPU topology .
&self
&self