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

Function xStratStats

xfs/parse.go:323–332  ·  view source on GitHub ↗

xStratStats handles xstrat stats.

(us []uint32)

Source from the content-addressed store, hash-verified

321
322// xStratStats handles xstrat stats.
323func xStratStats(us []uint32) (XstratStats, error) {
324 if l := len(us); l != 2 {
325 return XstratStats{}, fmt.Errorf("incorrect number of values for XFS xstrat stats: %d", l)
326 }
327
328 return XstratStats{
329 Quick: us[0],
330 Split: us[1],
331 }, nil
332}
333
334// readWriteStats handles rw stats.
335func readWriteStats(us []uint32) (ReadWriteStats, error) {

Callers 1

ParseStatsFunction · 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…