<listitem>
<para><varname>xtmemory [<filename> default xtmemory.kcg.%p.%n]</varname>
requests the tool (Memcheck, Massif, Helgrind) to produce an xtree heap memory report.
- See <xref linkend="manual-core.xtree"/> for
+ See <xref linkend="&vg-xtree-id;"/> for
a detailed explanation about execution trees. </para>
</listitem>
<para> Tools replacing Valgrind's <function>malloc,
realloc,</function> etc, can optionally produce an execution
tree detailing which piece of code is responsible for heap
- memory usage. See <xref linkend="manual-core.xtree"/>
+ memory usage. See <xref linkend="&vg-xtree-id;"/>
for a detailed explanation about execution trees. </para>
<para> When set to <varname>none</varname>, no memory execution
If the filename contains the extension <option>.kcg</option>
or no extension is provided or recognised,
then the produced file format will be a callgrind output format.</para>
- <para>See <xref linkend="manual-core.xtree"/>
+ <para>See <xref linkend="&vg-xtree-id;"/>
for a detailed explanation about execution trees formats. </para>
</listitem>
</varlistentry>
</sect1>
-<sect1 id="manual-core.xtree" xreflabel="Execution Trees">
+<sect1 id="&vg-xtree-id;" xreflabel="&vg-xtree-label;">
<title>Execution Trees</title>
<para>An execution tree (xtree) is made of a set of stack traces, each
<ulink id="&vg-cg-manual-id;"
xreflabel="&vg-cg-manual-label;"
url="&vg-cg-manual-url;">&vg-cg-manual-label;</ulink>.
+<ulink id="&vg-xtree-id;"
+ xreflabel="&vg-xtree-label;"
+ url="&vg-xtree-url;">&vg-xtree-label;</ulink>
</para>
</refsect1>
<!ENTITY vg-pthreads-perf-sched-id "&vg-pthreads-perf-sched-manual;.&vg-pthreads-perf-sched-ref;">
<!ENTITY vg-pthreads-perf-sched-url "&vg-manual-url;&vg-pthreads-perf-sched-manual;.html#&vg-pthreads-perf-sched-id;">
-
<!ENTITY vg-cg-manual-id "cg-manual">
<!ENTITY vg-cg-manual-label "Cachegrind: a cache and branch-prediction profiler">
<!ENTITY vg-cg-manual-url "&vg-manual-url;&vg-cg-manual-id;.html">
+
+<!ENTITY vg-xtree-manual "manual-core">
+<!ENTITY vg-xtree-ref "xtree">
+<!ENTITY vg-xtree-label "Execution Trees">
+<!ENTITY vg-xtree-id "&vg-xtree-manual;.&vg-xtree-ref;">
+<!ENTITY vg-xtree-url "&vg-manual-url;&vg-xtree-manual;.html#&vg-xtree-id;">
<varname>ANNOTATE_*</varname> macros defined
in <varname>helgrind.h</varname>.</para>
-<para>Helgrind also provides <xref linkend="manual-core.xtree"/> memory
+<para>Helgrind also provides <xref linkend="&vg-xtree-id;"/> memory
profiling using the command line
option <computeroutput>--xtree-memory</computeroutput> and the monitor command
<computeroutput>xtmemory</computeroutput>.</para>
<listitem>
<para><varname>xtmemory [<filename> default xtmemory.kcg.%p.%n]</varname>
requests Helgrind tool to produce an xtree heap memory report.
- See <xref linkend="manual-core.xtree"/> for
+ See <xref linkend="&vg-xtree-id;"/> for
a detailed explanation about execution trees. </para>
</listitem>
which parts of your program are responsible for allocating the heap memory.
</para>
-<para>Massif also provides <xref linkend="manual-core.xtree"/> memory
+<para>Massif also provides <xref linkend="&vg-xtree-id;"/> memory
profiling using the command line
option <computeroutput>--xtree-memory</computeroutput> and the monitor command
<computeroutput>xtmemory</computeroutput>.</para>
<listitem>
<para><varname>xtmemory [<filename> default xtmemory.kcg.%p.%n]</varname>
requests Massif tool to produce an xtree heap memory report.
- See <xref linkend="manual-core.xtree"/> for
+ See <xref linkend="&vg-xtree-id;"/> for
a detailed explanation about execution trees. </para>
</listitem>
</itemizedlist>
<?xml version="1.0"?> <!-- -*- sgml -*- -->
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
+[ <!ENTITY % vg-entities SYSTEM "../../docs/xml/vg-entities.xml"> %vg-entities; ]>
<chapter id="mc-manual" xreflabel="Memcheck: a memory error detector">
often remaining undetected for long periods, then causing occasional,
difficult-to-diagnose crashes.</para>
-<para>Memcheck also provides <xref linkend="manual-core.xtree"/> memory
+<para>Memcheck also provides <xref linkend="&vg-xtree-id;"/> memory
profiling using the command line
option <computeroutput>--xtree-memory</computeroutput> and the monitor command
<computeroutput>xtmemory</computeroutput>.</para>
decrease of <option>PBk</option> event. The values for the increase and
decrease events will be zero for the first leak search done.</para>
- <para>See <xref linkend="manual-core.xtree"/> for a detailed explanation
+ <para>See <xref linkend="&vg-xtree-id;"/> for a detailed explanation
about execution trees.</para>
</listitem>
</varlistentry>
in exactly the same way as they are for <option>--log-file</option>.
See the description of <xref linkend="opt.log-file"/>
for details. </para>
- <para>See <xref linkend="manual-core.xtree"/>
+ <para>See <xref linkend="&vg-xtree-id;"/>
for a detailed explanation about execution trees formats. </para>
</listitem>
</varlistentry>
<para>If you want to use
<computeroutput>--xtree-memory=full</computeroutput> memory profiling
- (see <xref linkend="manual-core.xtree"/> ), then you cannot
+ (see <xref linkend="&vg-xtree-id;"/>), then you cannot
specify <varname>--keep-stacktraces=free</varname>
or <varname>--keep-stacktraces=none</varname>.</para>
</para>
<para>The value <varname>xtleak</varname> also produces a full leak report,
but output it as an xtree in a file xtleak.kcg.%p.%n (see <xref linkend="opt.log-file"/>).
- See <xref linkend="manual-core.xtree"/>
+ See <xref linkend="&vg-xtree-id;"/>
for a detailed explanation about execution trees formats.
See <xref linkend="opt.xtree-leak"/> for the description of the events
in a xtree leak file.
<listitem>
<para><varname>xtmemory [<filename> default xtmemory.kcg.%p.%n]</varname>
requests Memcheck tool to produce an xtree heap memory report.
- See <xref linkend="manual-core.xtree"/> for
+ See <xref linkend="&vg-xtree-id;"/> for
a detailed explanation about execution trees. </para>
</listitem>