[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: Using graphviz to visualize trace.py output, anybody?
From:       "David E. Konerding DSD staff" <dek () bosshog ! lbl ! gov>
Date:       2005-10-31 17:48:36
Message-ID: slrndmcm7k.1ud.dek () bosshog ! lbl ! gov
[Download RAW message or body]

In article <1130710534.618559.40680@g43g2000cwa.googlegroups.com>, svenn.are@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
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic