I have a small program, much like
cat that allocates memory when it is running. I would like to know how much memory is allocated at maximum throughout its run. How could I do that?
Usually if it's memory related I'll check if valgrind has it first:
doing something like:
Towards the top of the of the ms_print output should be a graph that will give you the info you desire.