Converted to using top in batch mode.

This corrects a significant issue whereby ps was reporting the total CPU
time spent in a particular thread, not the current time spent as is
obviously expected with a top-like tool.