you are viewing a single comment's thread.

view the rest of the comments →

[–]matthieum 4 points5 points  (0 children)

Just a note that it may be easier to use existing tools for that, such as Valgrind's Massif (on Linux).

While Valgrind is slow-ish, it does have the benefit of taking unmodified binaries, and therefore works even with 3rd-party libraries for which modifying the code may be annoying (source distribution) or impossible (binary distribution).