Scroll to navigation

PPROF(1) Google PPROF(1)

NAME

google-pprof - manual page for google-pprof (part of gperftools)

SYNOPSIS

google-pprof [options] <program> <profile>

DESCRIPTION

Prints specified cpu- or heap-profile

OPTIONS

Sort by cumulative data
Subtract <base> from <profile> before display

Reporting Granularity:

Report at address level
Report at source line level
Report at function level [default]
Report at source file level

Output type:

Generate text report [default]
Generate Postscript and display
Generate source listing of matching routines
Generate disassembly of matching routines
Generate DOT file to stdout
Generate Postscript to stdout
Generate PDF to stdout
Generate GIF to stdout

Heap-Profile Options:

Display in-use (mega)bytes [default]
Display in-use objects
Display allocated (mega)bytes
Display allocated objects
Display space in bytes
Ignore negaive differences

Call-graph Options:

Show at most so many nodes [default=80]
Hide nodes below <f>*total [default=.005]
Hide edges below <f>*total [default=.001]
Focus on nodes matching <regexp>
Ignore nodes matching <regexp>
Set GV scaling [default=0]

EXAMPLES

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

Copyright © 2005 Google Inc.

SEE ALSO

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
February 2005 google-pprof (part of gperftools)