MCPcopy Create free account
hub / github.com/prometheus/procfs / GetStats

Function GetStats

bcachefs/get.go:79–86  ·  view source on GitHub ↗

GetStats collects all Bcachefs statistics from sysfs.

(uuidPath string)

Source from the content-addressed store, hash-verified

77
78// GetStats collects all Bcachefs statistics from sysfs.
79func GetStats(uuidPath string) (*Stats, error) {
80 r := &reader{path: uuidPath}
81 s := r.readFilesystemStats()
82 if r.err != nil {
83 return nil, r.err
84 }
85 return s, nil
86}
87
88type reader struct {
89 path string

Callers 1

StatsMethod · 0.70

Calls 1

readFilesystemStatsMethod · 0.95

Tested by

no test coverage detected