gprof2dot.py 1.0

gprof2dot.py is a Python script to convert the output from gprof into a dot graph.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
LGPL (GNU Lesser General Public License) 
USER RATING:
3.2/5 22
DEVELOPED BY:
Jose Fonseca
HOMEPAGE:
code.google.com
CATEGORY:
ROOT \ Programming \ Quality Assurance and Testing
1 gprof2dot.py Screenshot:
gprof2dot.py
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.

Last updated on June 30th, 2008

#gprof conversion #dot graph #parse C++ template functions #gprof2dot.py #gprof #dot #graph

Add your review!

SUBMIT