gprof2dot.py is a Python script to convert the output from profilers such as gprof, oprofile, or Python profilers into a dot graph. It can correctly parse C++ template function names, allows you to prune nodes and edges below a certain threshold, handles mutually recursive functions, uses color efficiently to draw attention to hot-spots, and works on any platform where graphviz and Python are available, i.e. virtually anywhere.
xdot.py is an interactive viewer for graphs written in Graphviz's dot language. It internally uses the graphviz's xdot output format as an intermediate format and PyGTK and Cairo for rendering. It can be used either as a standalone application from command line or as a library embedded in a Python application.