Awhile back we built a useful little library but never got around to announcing it:
https://github.com/seomoz/process_tree_dictionary#processtreedictionary
As mentioned in the README, we don’t use this in production (and probably never will) but find it very useful as a way to build stateful test fakes that work with async: true
and with tests that spawn processes.