|
NAMEmprof - displays profiling information produced by the mpatrol librarySYNOPSISmprof [options] [file]DESCRIPTIONThe mprof command is a tool designed to read a profiling output file produced by the mpatrol library and display the profiling information that was obtained. The profiling information includes summaries of all of the memory allocations listed by size and the function that allocated them and a list of memory leaks with the call stack of the allocating function. It also includes a graph of all memory allocations listed in tabular form, and an optional graph specification file for later processing by the dot graph visualisation package.When the PROF option is used with the mpatrol library, statistics for all dynamic memory allocations and deallocations are written to a profiling output file. The name of this file can be changed with the PROFFILE option and the frequency at which the file is written can be specified with the AUTOSAVE option. The bounds for small allocations, medium allocations, large allocations and extra large allocations can be set with the SMALLBOUND, MEDIUMBOUND and LARGEBOUND options. Only allocations and deallocations are recorded, with each reallocation being treated as a deallocation immediately followed by an allocation. For full memory allocation profiling support, call stack traversal must be supported in the mpatrol library and all of the program's symbols must have been successfully read by the mpatrol library before the program was run. The mprof command will attempt to compensate if either of these requirements are not met, but the displayed tables may contain less meaningful information. The file argument must be a valid mpatrol profiling output filename but if file is omitted then mprof will use mpatrol.out as the name of the profiling output file to use. If file is given as - then the standard input file stream will be used as the profiling output file. Much of the functionality of this tool is based upon mprof by Benjamin Zorn and Paul Hilfinger, which was written as a research project and ran on MIPS, SPARC and VAX machines. However, the profiling output files are incompatible, the tables displayed have a different format, and the way they are implemented is entirely different. OPTIONS
SEE ALSOmpatrol(1), mptrace(1), mleak(1), mpsym(1), mpedit(1), hexwords(1), prof(1), gprof(1), dot(1), libmpatrol(3), libmpalloc(3).The mpatrol manual and reference card. http://www.cbmamiga.demon.co.uk/mpatrol/ AUTHORGraeme S. Roy <graeme.roy@analog.com>COPYRIGHTCopyright (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.
Visit the GSP FreeBSD Man Page Interface. |