stats for ThreadPoolExecutor
Summary:
pool-wide stats via a call on the pool, and per-task stats (e.g. to be funneled into a histogram) via an rx subscription
rx needs a little work before this diff is safe - e.g. synchronization around the subscriber list, and perhaps exposing whether there are any subscribers so we can skip stat tracking if no one is listening
won't commit this without moving rx into folly/experimental of course
the idea is that timeout/expiration notifications can also go through the same subscription channel
haven't run the benchmarks yet and have to leave for the evening but tmrw i'll commit changes to the benchmark and get this stuff into windtunnel so i don't have to do so much manual output inspection on future diffs
Test Plan: added unit
Reviewed By: davejwatson@fb.com
Subscribers: fugalh, njormrod, bmatheny
FB internal diff:
D1558424
Tasks:
5002392,
5002425