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

Function parseReadAheadCache

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

Source from the content-addressed store, hash-verified

66}
67
68func parseReadAheadCache(v []uint64) (ReadAheadCache, error) {
69 if len(v) != 12 {
70 return ReadAheadCache{}, fmt.Errorf("invalid ReadAheadCache line %v", v)
71 }
72
73 return ReadAheadCache{
74 CacheSize: v[0],
75 CacheHistogram: v[1:11],
76 NotFound: v[11],
77 }, nil
78}
79
80func parseNetwork(v []uint64) (Network, error) {
81 if len(v) != 4 {

Callers 1

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…