> > I'm trying to optimize the memory use of my Mach-O application
> > (CodeWarrior C++ application, using PowerPlant and now PPx). My
[quoted text clipped - 21 lines]
> In short, believe MallocDebug and not top when you are running your app
> with MallocDebug.
Stephen,
That's a good point, but there is still something going on that is not
explained by the concept that MallocDebug is using a lot of memory. In
my final (non-MallocDebug) version, I see very similar numbers from top;
not as huge but more than I'd expect given the sizes I see running
MallocDebug.
There used to be other allocators, like HeapManager, that could be
linked in instead of the system allocator. Are there any other choices
that I should be considering?
Thanks--
Bruce

Signature
Bruce Horn, Chief Technical Officer, Marketocracy, Inc.
Eric Albert - 19 Jan 2005 06:17 GMT
In article
<outlawspam-EC01D4.17022918012005@newssvr14-ext.news.prodigy.com>,
> > > I'm trying to optimize the memory use of my Mach-O application
> > > (CodeWarrior C++ application, using PowerPlant and now PPx). My
[quoted text clipped - 21 lines]
> > In short, believe MallocDebug and not top when you are running your app
> > with MallocDebug.
> That's a good point, but there is still something going on that is not
> explained by the concept that MallocDebug is using a lot of memory. In
> my final (non-MallocDebug) version, I see very similar numbers from top;
> not as huge but more than I'd expect given the sizes I see running
> MallocDebug.
How are you measuring memory allocation in MallocDebug?
Also, you may want to look into the heap, malloc_history, and leaks
command-line tools.
-Eric

Signature
Eric Albert ejalbert@cs.stanford.edu
http://outofcheese.org/
Sean McBride - 22 Jan 2005 23:05 GMT
In article
<outlawspam-EC01D4.17022918012005@newssvr14-ext.news.prodigy.com>,
> There used to be other allocators, like HeapManager, that could be
> linked in instead of the system allocator. Are there any other choices
> that I should be considering?
You might look up "DebugNew" and I think Howard Hinnant made a
replacement for new/delete for debugging also.