Implement the prof.gdump mallctl.
This feature makes it possible to toggle the gdump feature on/off during program execution, whereas the the opt.prof_dump mallctl value can only be set during program startup. This resolves #72.
This commit is contained in:
@@ -1215,13 +1215,11 @@ malloc_conf = "xmalloc:true";]]></programlisting>
|
||||
<literal>r-</literal>
|
||||
[<option>--enable-prof</option>]
|
||||
</term>
|
||||
<listitem><para>Trigger a memory profile dump every time the total
|
||||
virtual memory exceeds the previous maximum. Profiles are dumped to
|
||||
files named according to the pattern
|
||||
<filename><prefix>.<pid>.<seq>.u<useq>.heap</filename>,
|
||||
where <literal><prefix></literal> is controlled by the <link
|
||||
linkend="opt.prof_prefix"><mallctl>opt.prof_prefix</mallctl></link>
|
||||
option. This option is disabled by default.</para></listitem>
|
||||
<listitem><para>Set the initial state of <link
|
||||
linkend="prof.gdump"><mallctl>prof.gdump</mallctl></link>, which when
|
||||
enabled triggers a memory profile dump every time the total virtual
|
||||
memory exceeds the previous maximum. This option is disabled by
|
||||
default.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="opt.prof_final">
|
||||
@@ -1687,6 +1685,22 @@ malloc_conf = "xmalloc:true";]]></programlisting>
|
||||
option.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="prof.gdump">
|
||||
<term>
|
||||
<mallctl>prof.gdump</mallctl>
|
||||
(<type>bool</type>)
|
||||
<literal>rw</literal>
|
||||
[<option>--enable-prof</option>]
|
||||
</term>
|
||||
<listitem><para>When enabled, trigger a memory profile dump every time
|
||||
the total virtual memory exceeds the previous maximum. Profiles are
|
||||
dumped to files named according to the pattern
|
||||
<filename><prefix>.<pid>.<seq>.u<useq>.heap</filename>,
|
||||
where <literal><prefix></literal> is controlled by the <link
|
||||
linkend="opt.prof_prefix"><mallctl>opt.prof_prefix</mallctl></link>
|
||||
option.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="prof.reset">
|
||||
<term>
|
||||
<mallctl>prof.reset</mallctl>
|
||||
|
Reference in New Issue
Block a user