Massif: a heap profiler
ms_print massif.out.12345
ms_print will produce (a) a graph showing the memory consumption over the program’s execution, and (b) detailed
information about the responsible allocation sites at various points in the program, including the point of peak memory
allocation. The use of a separate script for presenting the results is deliberate: it separates the data gathering from its
presentation, and means that new methods of presenting the data can be added in the future.
9.2.4. The Output Preamble
After running this program under Massif, the first part of ms_print’s output contains a preamble which just states how
the program, Massif and ms_print were each invoked:
--------------------------------------------------------------------------------
Command:
example
Massif arguments:
(none)
ms_print arguments: massif.out.12797
--------------------------------------------------------------------------------
9.2.5. The Output Graph
The next part is the graph that shows how memory consumption occurred as the program executed:
138