My memory profiler MemPro does exactly what you want. It requires only minor modifications to your code. It is currently in Beta and is available for free.