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