Function sys_metrics::disks::get_iostats [−][src]
pub fn get_iostats() -> Result<Vec<IoStats>, Error>
Get basic IoStats (physical and virtual) info for each disks/partitions.
It only contains the device_name
and the number of bytes read
/wrtn
.
On linux it will get them from /proc/diskstats
.