Using TAU for your code. Here is a log of methods for using TAU and various coupled tools for performance analysis of your code.