Massif Monitor Commands; Massif Client Requests; Ms_Print Command-Line Options; Massif's Output File Format - Valgrind Software Quick Start Manual

Table of Contents

Advertisement

--massif-out-file=<file> [default:
Write the profile data to file rather than to the default output file, massif.out.<pid>. The %p and %q format
specifiers can be used to embed the process ID and/or the contents of an environment variable in the name, as is the
case for the core option --log-file.

9.4. Massif Monitor Commands

The Massif tool provides monitor commands handled by the Valgrind gdbserver (see
the Valgrind
gdbserver).
• snapshot [<filename>] requests to take a snapshot and save it in the given <filename> (default mas-
sif.vgdb.out).
• detailed_snapshot [<filename>] requests to take a detailed snapshot and save it in the given <filename>
(default massif.vgdb.out).

9.5. Massif Client Requests

Massif does not have a massif.h file, but it does implement two of the core client requests:
VALGRIND_MALLOCLIKE_BLOCK and VALGRIND_FREELIKE_BLOCK;
Request
mechanism.

9.6. ms_print Command-line Options

ms_print's options are:
-h --help
Show the help message.
--version
Show the version number.
--threshold=<m.n> [default:
Same as Massif's --threshold option, but applied after profiling rather than during.
--x=<4..1000> [default:
Width of the graph, in columns.
--y=<4..1000> [default:
Height of the graph, in rows.

9.7. Massif's Output File Format

Massif's file format is plain text (i.e. not binary) and deliberately easy to read for both humans and machines.
Nonetheless, the exact format is not described here.
In the future we hope to make the format more general, and thus suitable for possible use with other tools. Once this
has been done, the format will be documented here.
massif.out.%p]
1.0]
72]
20]
This is because the format is currently very Massif-specific.
Massif: a heap profiler
Monitor command handling by
they are described in
The Client
148

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Software and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents