by angedelamort » Feb 25, 2004 @ 7:33pm
there is fast way to do this on the device, but it's only an approximation:
overload the operator new, new[], delete and delete[]. And in those functions, add a memory counter that add/sub nb of bytes. If all the memory is allocated at the start of the program, it will be almost accurate, but if there is a lot of dynamic allocation, because of the fragmentation, it won't be really precise. But at least, you will have a better idea.
Having a memory manager is interesting for this matter :P but it's a lot of works.
Another way, is the brute force :P Full the memory of the ppc until your app don't works.