mitchellh / go-ps

Find, list, and inspect processes from Go (golang).
MIT License
1.46k stars 250 forks source link

Add FilterProcesses #19

Open cat2neat opened 7 years ago

cat2neat commented 7 years ago

This PR enables users to retrieve not only all processes but filtered one with a user defined predicate, also should solve issues filed at #18 and #4 in more generic way.

Additionally this would get FindProcess more (cpu|memory) efficient than the current on (windows|darwin), since those platforms have used processes() internally which cause listing all processes.

Tested on every platform with the latest build.