I need to figure out which part of a linux program that I am running, is taking how much (either percentage, or absolute) memory. I need to create a profile of multiple such
You can use Google's perftools for memory profiling. The project provides a very fast, multi-threaded malloc implementation, a Heap profiler, a Heap checker and a CPU profiler.