Need Help Compiling MemProf 0.6 on Ubuntu
Archives Forums/Linux Discussion/Need Help Compiling MemProf 0.6 on Ubuntu
| ||
Arrggghhh! I've been trying to get this working for an hour now, and I can't see what I'm doing wrong. I'm trying to install MemProf so that I can track down some memory leaks in FLTKMaxGUI. After searching for a prebuilt package from Synaptic, I found an old version 0.51 which although installed great, it apparently doesn't work with the latest libc library. :-( So I downloaded the latest v0.6 source from the site, extracted it, cd'd into the directory, typed: ./configureThis finished a few minutes later... I then typed: makeAnd I get the following error almost immediately: sebholl@...$ make make all-recursive make[1]: Entering directory `/home/sebholl/Desktop/memprof-0.6' Making all in po make[2]: Entering directory `/home/sebholl/Desktop/memprof-0.6/po' file=`echo am | sed 's,.*/,,'`.gmo \ && rm -f $file && -o $file am.po /bin/sh: -o: not found make[2]: *** [am.gmo] Error 127 make[2]: Leaving directory `/home/sebholl/Desktop/memprof-0.6/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/sebholl/Desktop/memprof-0.6' make: *** [all] Error 2 Anyone know what's going wrong? Better still, can anyone send me a compiled version? :-p Thanks |
| ||
even 0.6 looks a bit old, with a 2006 timestamp. Is this the best tool you could find? |
| ||
I had a look and couldn't find anything else with a GUI front end that wouldn't mean having to recompile with additional libraries imported, and that would allow me to get memory dumps of the running process. Do you know of a better one? |
| ||
*The* memory profiling app is called Valgrind - http://valgrind.org/ It appears you can get different UIs for it. |
| ||
Cheers Brucey! I managed to install it, got it attached to the process, but couldn't work out for the life of me how to get a memory dump from any of the GUIs. After another hour of Google searches, I found out that most Linux distros have a package you can use to dump processes using terminal... gcore -o "filename.tmp" PIDEasy! It dumps a process's current memory to disk, which I can then examine using a regular hex editor. Thanks anyway Brucey. |