MCPcopy Create free account
hub / github.com/weaveworks/scope / parseIntWithSpaces

Function parseIntWithSpaces

probe/process/walker_linux.go:72–74  ·  view source on GitHub ↗

parseIntWithSpaces is similar to strconv.ParseInt but stops parsing when reading a space instead of returning an error

(buf *[]byte, pos *int)

Source from the content-addressed store, hash-verified

70// parseIntWithSpaces is similar to strconv.ParseInt but stops parsing when
71// reading a space instead of returning an error
72func parseIntWithSpaces(buf *[]byte, pos *int) (ret int) {
73 return int(parseUint64WithSpaces(buf, pos))
74}
75
76// readStats reads and parses '/proc/<pid>/stat' files
77func readStats(path string) (ppid, threads int, jiffies, rss, rssLimit uint64, err error) {

Callers 1

readStatsFunction · 0.85

Calls 1

parseUint64WithSpacesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…