Using graphviz to visualize trace.py output, anybody?

David E. Konerding DSD staff dek at bosshog.lbl.gov
Mon Oct 31 12:48:36 EST 2005


In article <1130710534.618559.40680 at g43g2000cwa.googlegroups.com>, svenn.are at bjerkem.de wrote:
> Hi,
> 
> has anybody thought of / already used graphviz to convert the output of
> trace.py into a graph? I looked at PyUMLGraph, but 1. PyUMLGraph does
> not successfully create a dot file, and 2. I don't really want a UML
> representation but a compact representation of program execution.
> 
> Maybe there is some other tool that I am not aware of which can create
> this kind of trace. I use eclipse with pydev plugin on MacOS 10.3.9
> 
> Regards,
> Svenn
> 

Take a look at:
http://dkbza.org/pydot.html

It's a python interface which can produce dot format files (based on its internal
graph API) and run graphviz for you.

I'm not sure which trace.py you're referring to, but I assume it dumps some output file.
You have a couple of obvious ways to get what you want:

1) modify trace.py to create a pydot graph structure then write to file
2) make a script that parses the trace.py output to create a pydot graph structure then write to file

Dave



More information about the Python-list mailing list