Brian Goff
01034af976
getPids - don't recursively traverse every dir
...
`filepath.Walk` recursively traverses every dir, which is not what is
needed for getPids.
Instead only read the list of dirs in the top level of `/proc`.
```
benchmark old ns/op new ns/op delta
BenchmarkGetPids-4 868684 195522 -77.49%
```
2018-07-19 09:42:52 -07:00
..
2018-07-12 07:18:37 -07:00
2018-07-18 14:11:22 +08:00
2018-07-06 10:55:17 -04:00
2018-07-10 11:01:15 +08:00
2018-07-18 16:42:11 -07:00
2018-07-18 16:42:18 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-07-12 10:26:18 +02:00
2018-07-13 18:00:00 -07:00
2018-07-09 14:03:08 +02:00
2018-07-18 00:37:00 -07:00
2018-07-18 16:42:22 -07:00
2018-07-09 14:09:48 -07:00
2018-07-13 11:41:09 -04:00
2018-07-09 20:39:10 -07:00
2018-06-22 16:22:57 -07:00
2018-07-17 19:53:10 -07:00
2018-07-05 10:29:58 -04:00
2018-07-13 11:41:09 -04:00
2018-07-16 11:42:28 +05:30
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-27 14:21:27 +08:00
2018-06-22 16:22:57 -07:00
2018-07-19 09:42:52 -07:00
2018-06-22 16:22:57 -07:00
2018-07-18 03:32:59 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:18 -07:00
2018-06-27 13:31:10 +02:00