"An application's memory use can significantly affect its
performance and stability. Memory leaks, for example, can produce
application instability with prolonged use. Similarly,
memory-greedy applications might perform badly, or not run at all!
Such problems are particularly prominent in the wireless world,
with its memory-constrained devices such as PDAs or mobile phones.
Ironically, those devices with the most stringent memory
requirements tend to offer the least support for analyzing
application memory use.
"This article shows how, with a little work, you can add
powerful memory profiling to applications, allowing detailed
memory-use analysis. Armed with such information, you can reduce
the overall memory footprint and eliminate memory leaks. An example
implementation is provided within this article..."