Has anyone tried successfully compiling and running a program for profiling with gprof? According to some documentation on gprof, I’ve noticed that I need my program to call exit(), so I’m calling std::exit() in the ofApp class when a key is pressed. I’ve also added the -pg flags to the list of compiler flags in config.make. Unfortunately, this still doesn’t generate the necessary gprof.out file that gprof needs to do the analysis. Has anyone successfully profiled with gprof before?
Thanks!