google-pprof - manual page for google-pprof (part of
gperftools)
google-pprof [options] <program>
<profile>
- Prints specified cpu- or heap-profile
- --cum
- Sort by cumulative data
- --base=<base>
- Subtract <base> from <profile> before display
- --text
- Generate text report [default]
- --gv
- Generate Postscript and display
- --list=<regexp>
- Generate source listing of matching routines
- --disasm=<regexp>
- Generate disassembly of matching routines
- --dot
- Generate DOT file to stdout
- --ps
- Generate Postscript to stdout
- --pdf
- Generate PDF to stdout
- --gif
- Generate GIF to stdout
google-pprof /bin/ls ls.prof
- Outputs one line per procedure
google-pprof --gv /bin/ls ls.prof
- Displays annotated call-graph via 'gv'
google-pprof --gv --focus=Mutex /bin/ls
ls.prof
- Restricts to code paths including a .*Mutex.* entry
google-pprof --gv --focus=Mutex
--ignore=string /bin/ls ls.prof
- Code paths including Mutex but not string
google-pprof --list=getdir /bin/ls ls.prof
- Dissassembly (with per-line annotations) for getdir()
google-pprof --disasm=getdir /bin/ls ls.prof
- Dissassembly (with per-PC annotations) for getdir()
Copyright © 2005 Google Inc.
Further documentation for google-pprof is maintained as a
web page called cpu_profiler.html and is likely installed at one of
the following locations:
- /usr/share/doc/libgoogle-perftools-dev/cpuprofile.html
/usr/local/share/gperftools/cpu_profiler.html