Hello all, I'm new to using mpatrol and I'm trying to use it to figure out heap efficiency. Basically when the process mallocs memory, reserves it, and then...
Hi Tom, The short answer is that it doesn't free the memory back to the system, and neither do most other malloc libraries. And now for the long answer... For...
Hi Tom, Assuming you're wanting more low-level memory usage statistics, I can't really recommend one particular tool because it depends what system you're...
Hey Graeme, thanks again. I'm running on linux. I've used strace for some testing and small programs, but was hoping there was an existing tool to give me nice...
Hi, Can anyone out there help with this strange problem. The program in question is fairly complex (threads & forks) and part built from binary-only libraries....
On linux, try valgrind. http://www.valgrind.org/
On Tuesday 28 November 2006 17:51, andy_juniper wrote:
> Hi,
>
> Can anyone out there help with this strange...
Hi, I have tried valgrind and unfortunately it doesn't cut the mustard, because: a) I can't turn off memory checking like I can on mpatrol, and thus it runs...
Hi, I have tried valgrind and unfortunately it doesn't cut the mustard, because: a) I can't turn off memory checking like I can on mpatrol, and thus it runs...
You need to configure valgrind to show possible leaks, memory that is still referenced. Speed can be an issue though.
On Wednesday 29 November 2006 11:41,...
Hi, Yep, done that already (--show-reachable=yes --trace-children=yes --leak-check=yes). Still no signs of leaks despite the fact that the process size...
Looks like I'm getting somewhere with valgrind now, having had to change my code to manually call the leak check process (whereas mpatrol would have done that...
Hi, Having a little trouble getting mpatrol working using LD_PRELOAD on HP-UX 11.11 (PA-RISC). I've built a test program that included mpatrol.h, and that...
Hi Jim, I think what you're seeing is a result of memcpy() and family being overridden as well when you use LD_PRELOAD. Without LD_PRELOAD you get the...
I have been trying to get a copy of mpatrol that will work on a SuSe 9.0 PPC machine. I downloaded mpatrol_1.4.8.gz from www.icewalkers.com and managed to get...
Hello, perhaps someone can help me with this little problem. I have a quite simple piece of code that actually doesn't do anything, but produces two memory...
I have compiled mpatrol 1.4.8 on Solaris 11. I compile the test files like this gcc test1.c -o test1 -I/usr/local/include -lmpatrol -lelf It gets compiled....
I find I cannot comprehend the outputs of mprof vs mptrace for my program: The mptrace summary shows: allocated: 2335 (334988 bytes) freed: 2315 (323172...
It looks like you may have found an undocumented difference between profiling and tracing. As it is currently implemented, profiling records the actual memory ...
Hi, I'm having a bit of a hard time. The output was not exactly accurate. I've now got better variance between mprof and mptrace but its still unpredictable. ...
Hi, Your program looks like it's creating quite a few threads. Are you remembering to link with libmpatrolmt.so rather than libmpatrol.so? Graeme. ... ...
Hi, I can't build a C++ code with mpatrol that has stl vector, can anybody please tell me how to make this work. Thanks, -Hasan Here is the source: #include...
Hi, It's a problem with the macro replacement that mpatrol.h tries to do with new and delete. See http://www.cbmamiga.demon.co.uk/mpatrol/mpatrol_79.html...
Thanks, that was the problem. It works great now. Question: Lets say I want to trace a particular class e.g. SMString and how its using heap; How do I modify ...
Hi ! My setup is as follows : 1. System is Solaris 8plus. Compiler CC and cc. 2. compiled mpatrol code with cc, and cplus.c with CC. No compile flags used for...
Hi, For problem 1 your workaround looks fine, although you'll need to change all references in the mpatrol/src directory from meminfo to meminfo1. The latest...
Hi, as stated in http://tech.groups.yahoo.com/group/mpatrol/message/794 mpatrol is "incompatible with the debug malloc implementation in libcd.lib and/or...
... Oh, sorry. In fact linking mpatrol in release mode does work. My actual problem is obviously the combination Boost.Test and mpatrol. Linking them both in...