Any way to track memory allocations?

wade Shen swadenator at gmail.com
Tue Feb 24 09:00:56 PST 2009


I'm writing some performance sensitive code (real time processing) for which I've tried to minimize the number of memory allocations by using preallocated objects pools.  Unfortunately, during the course of running, it seems that lots of memory is still getting allocated even though all explicit "new" and array slicing operations have been moved out of the main processing loops.  As a result the program is quite slow when garbage collection is enabled (but very fast otherwise).

Is there a way to track down where memory is being allocated if I'm using phobos? Any recommendations would be appreciated.

thanks,
wade




More information about the Digitalmars-d-learn mailing list