[−][src]Function sys_metrics::disks::get_iostats
pub fn get_iostats() -> Result<Vec<IoStats>, Error>
Get basic IoStats 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
.
On macOS it will use unsafes call to multiple OSX specific functions.