PDA

View Full Version : Memory profiling and debugging tools



nickname_changed
09-11-2004, 09:58 AM
Hey guys,

I'd like to hear some reccomendations on tools for monitoring applications created in C++ (with SDL) and reporting any and all memory leaks. I tried Memprof but couldn't get it to work :(

Salem
09-11-2004, 11:43 AM
Well I've used electric fence in the past with some success.
Many others suggest valgrind as an alternative.

chrismiceli
09-11-2004, 12:38 PM
Yeah, I used gprof once, but I didn't have profiling support compiled in my kernel. If you are looking at profiling, (you are), you need to enable profiling support.
kernel-2.6.*
profiling support->profiling support

HaLCy0n
09-14-2004, 02:12 PM
I personally use valgrind and gprof. I used electric fence in the past, but I don't think its being maintained any longer, and I believe it doesn't work if NPTL is enabled.

kermit
09-14-2004, 03:58 PM
Not a reccomendation (never used it), but you are free to check it out for yourself:

http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/