Profiling memory usage in given process

Why not use tracing for this? Seems like a perfect fit.