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

📄 mleak.1

📁 debug source code under unix platform.
💻 1
字号:
.\" mpatrol.\" A library for controlling and tracing dynamic memory allocations..\" Copyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com>.\".\" This library is free software; you can redistribute it and/or.\" modify it under the terms of the GNU Library General Public.\" License as published by the Free Software Foundation; either.\" version 2 of the License, or (at your option) any later version..\".\" This library is distributed in the hope that it will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU.\" Library General Public License for more details..\".\" You should have received a copy of the GNU Library General Public.\" License along with this library; if not, write to the Free.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,.\" MA 02111-1307, USA..\".\" UNIX Manual Page.\".\" $Id: mleak.1,v 1.17 2002/01/08 20:28:41 graeme Exp $.\".TH MLEAK 1 "8 January 2002" "Release 1.4" "mpatrol library".SH NAMEmleak \- locates memory leaks in an mpatrol log file.SH SYNOPSIS\fBmleak\fP [\fIoptions\fP] [\fIfile\fP].SH DESCRIPTIONThe \fBmleak\fP 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 \fBSHOWUNFREED\fP option from working),but note that some of the unfreed allocations might have been freed if theprogram had terminated successfully..PPThe \fBmleak\fP command scans through an mpatrol log file looking for linesbeginning with \fIALLOC:\fP and \fIFREE:\fP but ignores lines beginning with\fIREALLOC:\fP, so only the \fBLOGALLOCS\fP and \fBLOGFREES\fP 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..PPThis command will also read the unfreed allocations table produced by the\fBSHOWUNFREED\fP 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..PPThe \fIfile\fP argument must be a valid mpatrol log filename but if \fIfile\fPis omitted then \fBmleak\fP will use \fImpatrol.log\fP as the name of the logfile to use.  The \fBmleak\fP command makes two passes over the log file sothe file must be randomly-accessable.  If \fIfile\fP is given as \fI\-\fP thenthe standard input file stream will be used as the log file..SH OPTIONS.TP\fB\-\-help\fP [\fB\-h\fP]Displays a quick-reference option summary..TP\fB\-\-ignore\fP [\fB\-i\fP]Specifies that the list of unfreed allocations in the log file should beignored..TP\fB\-\-max\-stack\fP \fIdepth\fP [\fB\-n\fP]Specifies the maximum stack depth to display for each unfreed memory allocation.If \fIdepth\fP is \fI0\fP then the call stack depth will be unlimited in size.The default call stack depth is \fI0\fP..TP\fB\-\-version\fP [\fB\-V\fP]Displays the version number of the \fBmleak\fP command..SH SEE ALSO\fBmpatrol\fP(1), \fBmprof\fP(1), \fBmptrace\fP(1), \fBmpsym\fP(1),\fBmpedit\fP(1), \fBhexwords\fP(1), \fBlibmpatrol\fP(3), \fBlibmpalloc\fP(3)..PPThe mpatrol manual and reference card..PPhttp://www.cbmamiga.demon.co.uk/mpatrol/.SH AUTHORGraeme S. Roy <graeme.roy@analog.com>.SH COPYRIGHTCopyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com>.PPThis 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..PPThis 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..PPYou 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.

⌨️ 快捷键说明

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