break stats tools out of main.cpp
d2u
thread timing statistics & visualization