kubernetes/pkg/util/procfs
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
..
BUILD Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
example_proc_cgroup
procfs_fake.go e3d534b2c4 2017-04-04 14:16:34 +08:00
procfs_linux_test.go getPids - don't recursively traverse every dir 2018-07-19 09:42:52 -07:00
procfs_linux.go getPids - don't recursively traverse every dir 2018-07-19 09:42:52 -07:00
procfs_unsupported.go Fixes #30886 2016-08-18 17:01:03 +02:00
procfs.go Fix building pkg/util/procfs on non-linux platforms 2016-08-17 11:57:44 -07:00