File: memusagestat.1

package info (click to toggle)
manpages 6.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,184 kB
  • sloc: sh: 575; python: 222; perl: 190; makefile: 29; lisp: 22
file content (92 lines) | stat: -rw-r--r-- 1,659 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: GPL-2.0-or-later
.\"
.TH memusagestat 1 2025-05-17 "Linux man-pages (unreleased)"
.SH NAME
memusagestat \- generate graphic from memory profiling data
.SH SYNOPSIS
.SY memusagestat
.RI [ option \~.\|.\|.\&]
.I datafile
.RI [ outfile ]
.YS
.SH DESCRIPTION
.B memusagestat
creates a PNG file containing a graphical representation of the
memory profiling data in the file
.IR datafile ;
that file is generated via the
.I \-d
(or
.IR \-\-data )
option of
.BR memusage (1).
.P
The red line in the graph shows the heap usage (allocated memory)
and the green line shows the stack usage.
The x-scale is either the number of memory-handling function calls or
(if the
.I \-t
option is specified)
time.
.SH OPTIONS
.TP
.BI \-o\~ file
.TQ
.BI \-\-output= file
Name of the output file.
.TP
.BI \-s\~ string
.TQ
.BI \-\-string= string
Use
.I string
as the title inside the output graph.
.TP
.B \-t
.TQ
.B \-\-time
Use time (rather than number of function calls) as the scale for the X axis.
.TP
.B \-T
.TQ
.B \-\-total
Also draw a graph of total memory consumption.
.TP
.BI \-x\~ size
.TQ
.BI \-\-x\-size= size
Make the output graph
.I size
pixels wide.
.TP
.BI \-y\~ size
.TQ
.BI \-\-y\-size= size
Make the output graph
.I size
pixels high.
.TP
.B \-?
.TQ
.B \-\-help
Print a help message and exit.
.TP
.B \-\-usage
Print a short usage message and exit.
.TP
.B \-V
.TQ
.B \-\-version
Print version information and exit.
.SH BUGS
To report bugs, see
.UR http://www.gnu.org/software/libc/bugs.html
.UE
.SH EXAMPLES
See
.BR memusage (1).
.SH SEE ALSO
.BR memusage (1),
.BR mtrace (1)