2021-03-27 02:24:07 -04:00
|
|
|
// Code generated by "stringer -type=osMetric -trimprefix=osMetric os-instrumented.go"; DO NOT EDIT.
|
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
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[osMetricRemoveAll-0]
|
|
|
|
_ = x[osMetricMkdirAll-1]
|
2022-07-24 03:43:11 -04:00
|
|
|
_ = x[osMetricMkdir-2]
|
|
|
|
_ = x[osMetricRename-3]
|
2022-08-01 16:22:43 -04:00
|
|
|
_ = x[osMetricOpenFileW-4]
|
|
|
|
_ = x[osMetricOpenFileR-5]
|
2024-01-10 11:48:50 -05:00
|
|
|
_ = x[osMetricOpenFileWFd-6]
|
|
|
|
_ = x[osMetricOpenFileRFd-7]
|
|
|
|
_ = x[osMetricOpen-8]
|
|
|
|
_ = x[osMetricOpenFileDirectIO-9]
|
|
|
|
_ = x[osMetricLstat-10]
|
|
|
|
_ = x[osMetricRemove-11]
|
|
|
|
_ = x[osMetricStat-12]
|
|
|
|
_ = x[osMetricAccess-13]
|
|
|
|
_ = x[osMetricCreate-14]
|
|
|
|
_ = x[osMetricReadDirent-15]
|
|
|
|
_ = x[osMetricFdatasync-16]
|
|
|
|
_ = x[osMetricSync-17]
|
|
|
|
_ = x[osMetricRename2-18]
|
|
|
|
_ = x[osMetricLast-19]
|
2021-03-27 02:24:07 -04:00
|
|
|
}
|
|
|
|
|
2024-01-10 11:48:50 -05:00
|
|
|
const _osMetric_name = "RemoveAllMkdirAllMkdirRenameOpenFileWOpenFileROpenFileWFdOpenFileRFdOpenOpenFileDirectIOLstatRemoveStatAccessCreateReadDirentFdatasyncSyncRename2Last"
|
2021-03-27 02:24:07 -04:00
|
|
|
|
2024-01-10 11:48:50 -05:00
|
|
|
var _osMetric_index = [...]uint8{0, 9, 17, 22, 28, 37, 46, 57, 68, 72, 88, 93, 99, 103, 109, 115, 125, 134, 138, 145, 149}
|
2021-03-27 02:24:07 -04:00
|
|
|
|
|
|
|
func (i osMetric) String() string {
|
|
|
|
if i >= osMetric(len(_osMetric_index)-1) {
|
|
|
|
return "osMetric(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
|
|
}
|
|
|
|
return _osMetric_name[_osMetric_index[i]:_osMetric_index[i+1]]
|
|
|
|
}
|