You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

  1. // Code generated by "stringer -type=osMetric -trimprefix=osMetric os-instrumented.go"; DO NOT EDIT.
  2. package cmd
  3. import "strconv"
  4. func _() {
  5. // An "invalid array index" compiler error signifies that the constant values have changed.
  6. // Re-run the stringer command to generate them again.
  7. var x [1]struct{}
  8. _ = x[osMetricRemoveAll-0]
  9. _ = x[osMetricMkdirAll-1]
  10. _ = x[osMetricMkdir-2]
  11. _ = x[osMetricRename-3]
  12. _ = x[osMetricOpenFileW-4]
  13. _ = x[osMetricOpenFileR-5]
  14. _ = x[osMetricOpenFileWFd-6]
  15. _ = x[osMetricOpenFileRFd-7]
  16. _ = x[osMetricOpen-8]
  17. _ = x[osMetricOpenFileDirectIO-9]
  18. _ = x[osMetricLstat-10]
  19. _ = x[osMetricRemove-11]
  20. _ = x[osMetricStat-12]
  21. _ = x[osMetricAccess-13]
  22. _ = x[osMetricCreate-14]
  23. _ = x[osMetricReadDirent-15]
  24. _ = x[osMetricFdatasync-16]
  25. _ = x[osMetricSync-17]
  26. _ = x[osMetricLast-18]
  27. }
  28. const _osMetric_name = "RemoveAllMkdirAllMkdirRenameOpenFileWOpenFileROpenFileWFdOpenFileRFdOpenOpenFileDirectIOLstatRemoveStatAccessCreateReadDirentFdatasyncSyncLast"
  29. var _osMetric_index = [...]uint8{0, 9, 17, 22, 28, 37, 46, 57, 68, 72, 88, 93, 99, 103, 109, 115, 125, 134, 138, 142}
  30. func (i osMetric) String() string {
  31. if i >= osMetric(len(_osMetric_index)-1) {
  32. return "osMetric(" + strconv.FormatInt(int64(i), 10) + ")"
  33. }
  34. return _osMetric_name[_osMetric_index[i]:_osMetric_index[i+1]]
  35. }