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-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-03-29 16:07:47 +08:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-04-19 09:18:53 -07:00
2018-02-15 18:04:04 -05:00
2018-06-22 16:22:18 -07:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2018-06-06 23:17:04 +03:00
2017-10-15 18:18:13 -07:00
2018-07-09 14:09:48 -07:00
2018-02-16 13:43:01 -08:00
2018-06-27 21:45:33 +08:00
2018-07-08 10:55:19 +02:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2017-10-15 18:18:13 -07:00
2018-06-22 16:22:57 -07:00
2018-07-11 00:10:15 +03:00
2018-02-27 11:18:11 -08:00
2018-02-16 13:43:01 -08:00
2018-07-10 14:33:49 -04:00
2017-11-16 10:18:00 +01:00
2018-07-03 14:04:52 -04:00
2018-06-22 16:22:18 -07:00
2018-02-16 13:43:01 -08:00
2018-06-22 16:22:57 -07:00
2018-03-27 10:30:01 -04:00
2018-07-19 09:42:52 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:18 -07:00
2018-06-22 16:22:18 -07:00
2018-06-22 16:22:18 -07:00
2018-06-22 16:22:18 -07:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2017-10-15 18:18:13 -07:00
2018-06-22 16:22:57 -07:00
2018-02-22 23:17:38 -08:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-06-22 16:22:57 -07:00
2018-05-30 11:15:47 -07:00
2018-04-19 13:20:13 +02:00