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

Function pushAilStats

xfs/parse.go:303–320  ·  view source on GitHub ↗

pushAilStats handles push_ail stats.

(us []uint32)

Source from the content-addressed store, hash-verified

301
302// pushAilStats handles push_ail stats.
303func pushAilStats(us []uint32) (PushAilStats, error) {
304 if l := len(us); l != 10 {
305 return PushAilStats{}, fmt.Errorf("incorrect number of values for XFS push ail stats: %d", l)
306 }
307
308 return PushAilStats{
309 TryLogspace: us[0],
310 SleepLogspace: us[1],
311 Pushes: us[2],
312 Success: us[3],
313 PushBuf: us[4],
314 Pinned: us[5],
315 Locked: us[6],
316 Flushing: us[7],
317 Restarts: us[8],
318 Flush: us[9],
319 }, nil
320}
321
322// xStratStats handles xstrat stats.
323func xStratStats(us []uint32) (XstratStats, 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…