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

Function parseV3Stats

nfs/parse.go:147–177  ·  view source on GitHub ↗
(v []uint64)

Source from the content-addressed store, hash-verified

145}
146
147func parseV3Stats(v []uint64) (V3Stats, error) {
148 values := int(v[0])
149 if len(v[1:]) != values || values < 22 {
150 return V3Stats{}, fmt.Errorf("invalid V3Stats line %v", v)
151 }
152
153 return V3Stats{
154 Null: v[1],
155 GetAttr: v[2],
156 SetAttr: v[3],
157 Lookup: v[4],
158 Access: v[5],
159 ReadLink: v[6],
160 Read: v[7],
161 Write: v[8],
162 Create: v[9],
163 MkDir: v[10],
164 SymLink: v[11],
165 MkNod: v[12],
166 Remove: v[13],
167 RmDir: v[14],
168 Rename: v[15],
169 Link: v[16],
170 ReadDir: v[17],
171 ReadDirPlus: v[18],
172 FsStat: v[19],
173 FsInfo: v[20],
174 PathConf: v[21],
175 Commit: v[22],
176 }, nil
177}
178
179func parseClientV4Stats(v []uint64) (ClientV4Stats, error) {
180 values := int(v[0])

Callers 2

ParseClientRPCStatsFunction · 0.85
ParseServerRPCStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…