Confirmed users
1,345
edits
Nnethercote (talk | contribs) |
Nnethercote (talk | contribs) |
||
| Line 246: | Line 246: | ||
DMD outputs a gzipped JSON file that contains a description of the heap. After unzipping it, you can analyze it using <tt>$OBJDIR/dist/bin/dmd.py</tt>. | DMD outputs a gzipped JSON file that contains a description of the heap. After unzipping it, you can analyze it using <tt>$OBJDIR/dist/bin/dmd.py</tt>. | ||
Some platforms (Linux, Mac) require stack fixing, which adds missing filename, function name and line number information. This will occur automatically the first time you run <tt>dmd.py</tt> on the output file. This can take several minutes to complete. | |||
If you invoke <tt>dmd.py</tt> without arguments you will get output that describes how the live heap blocks are covered by memory reports. This output is broken into multiple sections. | |||
# "Invocation". This tells you how DMD was invoked, i.e. what options were used. | # "Invocation". This tells you how DMD was invoked, i.e. what options were used. | ||