Documentation
¶
Overview ¶
Package iometrics manages I/O metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOMetrics ¶
type IOMetrics struct {
// contains filtered or unexported fields
}
IOMetrics holds I/O metrics.
func (*IOMetrics) OpsDone ¶
OpsDone counts when a non read/write I/O operation is done. err is an I/O operation error. e.g. stats, mkdir, readlink etc
func (*IOMetrics) ReadDone ¶
ReadDone counts when a read operation is done. n is the number of bytes, and err is a read error.
type Stats ¶
type Stats struct { // Number of I/O operations other than reads and writes. Ops int64 // Number of I/O operation errors other than read and write errors. OpsErrs int64 // Number of read operations. ROps int64 // Number of read bytes. RBytes int64 // Number of read errors. RErrs int64 // Number of write operations. WOps int64 // Number of write bytes. WBytes int64 // Number of write errors. WErrs int64 }
Stats holds iometrics.
Click to show internal directories.
Click to hide internal directories.