⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mleak.html

📁 debug source code under unix platform.
💻 HTML
字号:
Content-type: text/html<HTML><HEAD><TITLE>Manpage of MLEAK</TITLE></HEAD><BODY><H1>MLEAK</H1>Section: mpatrol library (1)<BR>Updated: 8 January 2002<BR><A HREF="#index">Index</A><A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR><A NAME="lbAB">&nbsp;</A><H2>NAME</H2>mleak - locates memory leaks in an mpatrol log file<A NAME="lbAC">&nbsp;</A><H2>SYNOPSIS</H2><B>mleak</B> [<I>options</I>] [<I>file</I>]<A NAME="lbAD">&nbsp;</A><H2>DESCRIPTION</H2>The <B>mleak</B> command is used to display all unfreed memory allocationsfrom a log file produced by the mpatrol library.  This should be used if thempatrol library could not finish writing the log file due to abnormal programtermination (which would prevent the <B>SHOWUNFREED</B> option from working),but note that some of the unfreed allocations might have been freed if theprogram had terminated successfully.<P>The <B>mleak</B> command scans through an mpatrol log file looking for linesbeginning with <I>ALLOC:</I> and <I>FREE:</I> but ignores lines beginning with<I>REALLOC:</I>, so only the <B>LOGALLOCS</B> and <B>LOGFREES</B> options arenecessary when running a program linked with the mpatrol library.  Note thatas a result of this, no attempt is made to account for resizing of memoryallocations and so the total amount of memory used by the resulting unfreedallocations may not be entirely accurate.<P>This command will also read the unfreed allocations table produced by the<B>SHOWUNFREED</B> option in the log file if one is present.  The entries in thetable will be compared with the currently allocated entries and will be addedif not already present.<P>The <I>file</I> argument must be a valid mpatrol log filename but if <I>file</I>is omitted then <B>mleak</B> will use <I>mpatrol.log</I> as the name of the logfile to use.  The <B>mleak</B> command makes two passes over the log file sothe file must be randomly-accessable.  If <I>file</I> is given as <I>-</I> thenthe standard input file stream will be used as the log file.<A NAME="lbAE">&nbsp;</A><H2>OPTIONS</H2><DL COMPACT><DT><B>--help</B> [<B>-h</B>]<DD>Displays a quick-reference option summary.<DT><B>--ignore</B> [<B>-i</B>]<DD>Specifies that the list of unfreed allocations in the log file should beignored.<DT><B>--max-stack</B> <I>depth</I> [<B>-n</B>]<DD>Specifies the maximum stack depth to display for each unfreed memory allocation.If <I>depth</I> is <I>0</I> then the call stack depth will be unlimited in size.The default call stack depth is <I>0</I>.<DT><B>--version</B> [<B>-V</B>]<DD>Displays the version number of the <B>mleak</B> command.</DL><A NAME="lbAF">&nbsp;</A><H2>SEE ALSO</H2><B><A HREF="http://localhost/cgi-bin/man/man2html?1+mpatrol">mpatrol</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+mprof">mprof</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+mptrace">mptrace</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+mpsym">mpsym</A></B>(1),<B><A HREF="http://localhost/cgi-bin/man/man2html?1+mpedit">mpedit</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+hexwords">hexwords</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?3+libmpatrol">libmpatrol</A></B>(3), <B><A HREF="http://localhost/cgi-bin/man/man2html?3+libmpalloc">libmpalloc</A></B>(3).<P>The mpatrol manual and reference card.<P><A HREF="http://www.cbmamiga.demon.co.uk/mpatrol/">http://www.cbmamiga.demon.co.uk/mpatrol/</A><A NAME="lbAG">&nbsp;</A><H2>AUTHOR</H2>Graeme S. Roy &lt;<A HREF="mailto:graeme.roy@analog.com">graeme.roy@analog.com</A>&gt;<A NAME="lbAH">&nbsp;</A><H2>COPYRIGHT</H2>Copyright (C) 1997-2002 Graeme S. Roy &lt;<A HREF="mailto:graeme.roy@analog.com">graeme.roy@analog.com</A>&gt;<P>This library is free software; you can redistribute it and/or modify it underthe terms of the GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at your option) anylater version.<P>This library is distributed in the hope that it will be useful, but WITHOUTANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for moredetails.<P>You should have received a copy of the GNU Library General Public Licensealong with this library; if not, write to the Free Software Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.<P><HR><A NAME="index">&nbsp;</A><H2>Index</H2><DL><DT><A HREF="#lbAB">NAME</A><DD><DT><A HREF="#lbAC">SYNOPSIS</A><DD><DT><A HREF="#lbAD">DESCRIPTION</A><DD><DT><A HREF="#lbAE">OPTIONS</A><DD><DT><A HREF="#lbAF">SEE ALSO</A><DD><DT><A HREF="#lbAG">AUTHOR</A><DD><DT><A HREF="#lbAH">COPYRIGHT</A><DD></DL><HR>This document was created by<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,using the manual pages.<BR>Time: 23:42:08 GMT, January 08, 2002</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -