Performance/MemShrink/DMD: Difference between revisions

Jump to navigation Jump to search
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>.


If you are on a platform that requires stack fixing (Linux, Mac) this will occur the first time you run <tt>dmd.py</tt> on the output file. This can take several minutes to complete.
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.


Once that completes, 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.
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.
Confirmed users
1,345

edits

Navigation menu