pidtree
pidtree copied to clipboard
Ability to exclude pidtree underlying ps/wmic process from results
Sometimes on windows (but probably on linux/mac also with ps), I'm having wmic process appearing in my process tree, but I would like to be able to have an option to force it not to show up in process tree.
Here is my use case:
pidtree(process.pid)
.then(pidusage)
.then(...);
-
pidtree(process.pid)sometimes includeswmicprocess -
pidusageis executed uponwmicprocess, but I do not want it