I was asked about this on StackOverflow, so I figured I’d put the memory-statistics-fetcher routines from Outpost up on github as a gist. Note that this gives a somewhat different value for allocated memory than ObjectAlloc will tell you; this is because it’s showing the total resident memory size of the application, not just the amount of memory allocated using malloc() and suchlike.
Share And Enjoy!