I would like to profile my c++ application on linux. I would like to find out how much time my application spent on CPU processing vs time spent on block by IO/being idle.>
The lackey and/or helgrind tools in valgrind should allow you to do this.