You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tim Greaves edited this page May 22, 2014
·
3 revisions
Here is a very quick tutorial to get you started using gprof to profile fluidity runs.
Step 0:
Compile a profile-enabled version of fluidity:
./configure --enable-profiling
make clean
make
Step 1:
Run the profile-enabled version of fluidity.
You should make sure that the run finishes normally (i.e. it doesn't crash, nor get interrupted), otherwise it will not create the important gmon.out file when it ends.
Step 2:
Use gprof with the special debug symbols file from fluidity to examine the resulting gmon.out:
Take a look at the gprof.info file in a text editor - there is loads of information in there, but, to get you started, the first few lines provide information about how long it spent in various fluidity subroutines.