gprof2dot.py

  2,893 downloads
1.0 LGPL (GNU Lesser General Public License)    
3.2/5 22
gprof2dot.py is a Python script to convert the output from gprof into a dot graph.

description

download

specifications

gprof2dot.py script can convert the output from gprof into a dot graph. It can correctly parse C++ template function names, allows you to prune nodes and edges below a certain threshold, can parse the special notation gprof uses for mutually recursive functions, uses color efficiently to draw attention to hot-spots, and works on any platform where GNU gprof, graphviz, and Python are available, i.e. virtually anywhere.

Here are some key features of "gprof2dot py":

· can correctly parse C++ template function names;
· allows to prune nodes and edges below a certain threshold;
· can parse the special notation gprof uses for mutually recursive functions;
· uses color efficiently to draw attention to hot-spots;
· works on any platform where GNU gprof, graphviz, and Python is available, i.e, virtually anywhere.

Usage:

gprof2dot.py [options] [file]

Options:

--version show program's version number and exit
-h, --help show this help message and exit
-o FILE, --output=FILE
output filename [stdout]
-n PERCENTAGE, --node-thres=PERCENTAGE
eliminate nodes below this threshold [default: 0.05]
-e PERCENTAGE, --edge-thres=PERCENTAGE
eliminate edges below this threshold [default: 0.01]
-c COLORMAP, --colormap=COLORMAP
color map: color, pink or gray [default: color]
-s, --strip strip function parameters, template parameters, and
const modifiers from demangled C++ function names
-w, --wrap wrap function names

What's New in This Release:

· An heuristic to propagate time inside recursive function cycles was added, allowing one to visualize the critical time path for highly recursive code.
· Several bugfixes and enhancements were made to oprofile output parsing.
READ MORE   
Last updated on June 30th, 2008
1  
gprof2dot.py

0 User reviews so far.

SUBMIT