# phpman > man > memusagestat(1)

[MEMUSAGESTAT(1)](https://www.chedong.com/phpMan.php/man/MEMUSAGESTAT/1/markdown)                       Linux programmer's manual                      [MEMUSAGESTAT(1)](https://www.chedong.com/phpMan.php/man/MEMUSAGESTAT/1/markdown)



## NAME
       memusagestat - generate graphic from memory profiling data

## SYNOPSIS
       **memusagestat** [_option_]... _datafile_ [_outfile_]

## DESCRIPTION
       **memusagestat** creates a PNG file containing a graphical representation of the memory profiling
       data in the file _datafile_;  that  file  is  generated  via  the  _-d_  (or  _--data_)  option  of
       [**memusage**(1)](https://www.chedong.com/phpMan.php/man/memusage/1/markdown).

       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 _-t_ option is specified) time.

## OPTIONS
### -o --output=
              Name of the output file.

### -s --string=
              Use _string_ as the title inside the output graph.

### -t --time
              Use time (rather than number of function calls) as the scale for the X axis.

### -T --total
              Also draw a graph of total memory consumption.

### -x --x-size=
              Make the output graph _size_ pixels wide.

### -y --y-size=
              Make the output graph _size_ pixels high.

       **-?**, **--help**
              Print a help message and exit.

### --usage
              Print a short usage message and exit.

### -V --version
              Print version information and exit.

## BUGS
       To report bugs, see ⟨<http://www.gnu.org/software/libc/bugs.html>⟩

## EXAMPLES
       See [**memusage**(1)](https://www.chedong.com/phpMan.php/man/memusage/1/markdown).

## SEE ALSO
       [**memusage**(1)](https://www.chedong.com/phpMan.php/man/memusage/1/markdown), [**mtrace**(1)](https://www.chedong.com/phpMan.php/man/mtrace/1/markdown)

## COLOPHON
       This  page  is  part  of  release  5.10 of the Linux _man-pages_ project.  A description of the
       project, information about reporting bugs, and the latest version of this page, can be  found
       at <https://www.kernel.org/doc/man-pages/>.



GNU                                          2020-06-09                              [MEMUSAGESTAT(1)](https://www.chedong.com/phpMan.php/man/MEMUSAGESTAT/1/markdown)
