[][src]Function procshot_server::scan_proc

pub fn scan_proc(delay: u64, host: String, datadir: &'static str)

scan_proc continuously scans /proc and records all the processes. scan_proc omits the pids if status.vmpeak == None || prc.stat.rss == 0 || status.pid < 0. One file is created for each iteration and sleeps for delay seconds after each iteration. The example in the description can be used as a reference to read the stored struct.