Add statistics option with process/thread CPU usage information

Add a statistics window with information about dropped frames as
well as detailed process or thread-based CPU usage statistics. This
can help to show where the performance bottleneck is and how
processing is distributed over different threads.