40 lines
1.5 KiB
Go
40 lines
1.5 KiB
Go
// Code generated by "stringer -type=stat -output ioStats_generated.go -linecomment"; DO NOT EDIT.
|
|
|
|
package disk
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[TotalReads-0]
|
|
_ = x[TotalReadsMerged-1]
|
|
_ = x[TotalSectorsRead-2]
|
|
_ = x[TotalTimeReading-3]
|
|
_ = x[TotalWrites-4]
|
|
_ = x[TotalWritesMerged-5]
|
|
_ = x[TotalSectorsWritten-6]
|
|
_ = x[TotalTimeWriting-7]
|
|
_ = x[ActiveIOs-8]
|
|
_ = x[ActiveIOTime-9]
|
|
_ = x[ActiveIOTimeWeighted-10]
|
|
_ = x[TotalDiscardsCompleted-11]
|
|
_ = x[TotalDiscardsMerged-12]
|
|
_ = x[TotalSectorsDiscarded-13]
|
|
_ = x[TotalTimeDiscarding-14]
|
|
_ = x[TotalFlushRequests-15]
|
|
_ = x[TotalTimeFlushing-16]
|
|
}
|
|
|
|
const _stat_name = "Total reads completedTotal reads mergedTotal sectors readTotal milliseconds spent readingTotal writes completedTotal writes mergedTotal sectors writtenTotal milliseconds spent writingI/Os currently in progressMilliseconds elapsed spent doing I/OsMilliseconds elapsed spent doing I/Os (weighted)Total discards completedTotal discards mergedTotal sectors discardedTotal milliseconds spent discardingTotal flush requests completedTotal milliseconds spent flushing"
|
|
|
|
var _stat_index = [...]uint16{0, 21, 39, 57, 89, 111, 130, 151, 183, 209, 246, 294, 318, 339, 362, 397, 427, 460}
|
|
|
|
func (i stat) String() string {
|
|
if i < 0 || i >= stat(len(_stat_index)-1) {
|
|
return "stat(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _stat_name[_stat_index[i]:_stat_index[i+1]]
|
|
}
|