I'm debugging a weird issue in a program of mine, valgrind returns 0 errors so it's not a memory leak, per say, but definitely somewhere in my program I'm allocating huge chunks and they arn't being returned.

Is there a way to map out a log, line per line of where memory is allocated? Basically I'd like to see each allocation with a backtrace. This would be a huge log I can imagine though...

Just wondering if a tool out there can do that. I want to at least be able to pin point which class is using lot of ram.