mirror of https://github.com/mkerrisk/man-pages
memusagestat.1: Add memusage output to example
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a863cb3a4c
commit
f170e1cc6c
|
@ -1,4 +1,5 @@
|
|||
.\" Copyright (c) 2013, Peter Schiffer (pschiffe@redhat.com)
|
||||
.\" Copyright (c) 2013, Peter Schiffer <pschiffe@redhat.com>
|
||||
.\" and Copyright (C) 2014, Michael Kerrisk <mtk.manpages@gmail.com>
|
||||
.\"
|
||||
.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
|
||||
.\" This is free documentation; you can redistribute it and/or
|
||||
|
@ -89,6 +90,25 @@ a graph of the memory usage of the program can be found in the file
|
|||
.in +4n
|
||||
.nf
|
||||
$ \fBmemusage --data=memusage.dat ./a.out\fP
|
||||
\&...
|
||||
Memory usage summary: heap total: 45200, heap peak: 6440, stack peak: 224
|
||||
total calls total memory failed calls
|
||||
malloc| 1 400 0
|
||||
realloc| 40 44800 0 (nomove:40, dec:19, free:0)
|
||||
calloc| 0 0 0
|
||||
free| 1 440
|
||||
Histogram for block sizes:
|
||||
192-207 1 2% ================
|
||||
\&...
|
||||
2192-2207 1 2% ================
|
||||
2240-2255 2 4% =================================
|
||||
2832-2847 2 4% =================================
|
||||
3440-3455 2 4% =================================
|
||||
4032-4047 2 4% =================================
|
||||
4640-4655 2 4% =================================
|
||||
5232-5247 2 4% =================================
|
||||
5840-5855 2 4% =================================
|
||||
6432-6447 1 2% ================
|
||||
$ \fBmemusagestat memusage.dat memusage.png\fP
|
||||
.fi
|
||||
.in
|
||||
|
|
Loading…
Reference in New Issue