pub struct IoCounters { /* private fields */ }
Expand description
Process IO statistics.
For additional information of data provided, see proc.txt documentation,
section 3.3 “/proc/
Implementations§
Source§impl IoCounters
impl IoCounters
Sourcepub fn chars_read(&self) -> Information
pub fn chars_read(&self) -> Information
The number of bytes which this task has caused to be read from storage.
Sourcepub fn chars_written(&self) -> Information
pub fn chars_written(&self) -> Information
The number of bytes which this task has caused, or shall cause to be written to disk.
Sourcepub fn read_syscalls(&self) -> u64
pub fn read_syscalls(&self) -> u64
Attempt to count the number of read I/O operations,
i.e. syscalls like read()
and pread()
.
Sourcepub fn write_syscalls(&self) -> u64
pub fn write_syscalls(&self) -> u64
Attempt to count the number of write I/O operations,
i.e. syscalls like write()
and pwrite()
.
Sourcepub fn bytes_read(&self) -> Information
pub fn bytes_read(&self) -> Information
Attempt to count the number of bytes which this process really did cause to be fetched from the storage layer.
Sourcepub fn bytes_written(&self) -> Information
pub fn bytes_written(&self) -> Information
Attempt to count the number of bytes which this process caused to be sent to the storage layer.
Sourcepub fn cancelled_write_bytes(&self) -> Information
pub fn cancelled_write_bytes(&self) -> Information
The number of bytes which this process caused to not happen, by truncating pagecache.