* Call Graph Generator
@ 2000-11-02 6:48 Eray Ozkural (exa)
2000-11-02 13:23 ` Ben Elliston
0 siblings, 1 reply; 6+ messages in thread
From: Eray Ozkural (exa) @ 2000-11-02 6:48 UTC (permalink / raw)
To: Source Navigator
[-- Attachment #1: Type: text/plain, Size: 846 bytes --]
Hi,
I've hacked some tcl code to generate graphviz files
for the call graph of a project. I don't know if such
a thing was available elsewhere but it works for me (TM)
Makes classes into clusters and places their methods in
them. Each arc represents function use.
The small hack is based on call-freq code...
Even the name is call-graph.tk although it doesn't
do GUI yet...
It's not even alpha, so I await your comments.
I've already used it to generate the call graph of a large C++
project and I expect that it will be very useful for others, too.
If you have requests for different kinds of graphs, feel free
to ask for them as they'll be probably useful for all of us!
Thanks!
--
Eray (exa) Ozkural
Comp. Sci. Dept., Bilkent University, Ankara
e-mail: erayo@cs.bilkent.edu.tr
www: http://www.cs.bilkent.edu.tr/~erayo
call-graph.tk.gz
[-- Attachment #2: call-graph.tk.gz --]
[-- Type: application/x-gzip, Size: 1828 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Call Graph Generator
2000-11-02 6:48 Call Graph Generator Eray Ozkural (exa)
@ 2000-11-02 13:23 ` Ben Elliston
2000-11-02 14:36 ` Eray Ozkural
0 siblings, 1 reply; 6+ messages in thread
From: Ben Elliston @ 2000-11-02 13:23 UTC (permalink / raw)
To: Eray Ozkural (exa); +Cc: Source Navigator
Hi,
I've hacked some tcl code to generate graphviz files for the call
graph of a project. I don't know if such a thing was available
elsewhere but it works for me (TM) Makes classes into clusters and
places their methods in them. Each arc represents function use.
I'm really interested to see some screen shots -- can you post a URL or two?
Ben
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Call Graph Generator
2000-11-02 13:23 ` Ben Elliston
@ 2000-11-02 14:36 ` Eray Ozkural
2000-11-03 1:48 ` Ben Elliston
2000-11-04 17:26 ` Brecht Vermeulen
0 siblings, 2 replies; 6+ messages in thread
From: Eray Ozkural @ 2000-11-02 14:36 UTC (permalink / raw)
To: Ben Elliston; +Cc: sourcenav
On Fri, Nov 03, 2000 at 08:22:44AM +1100, Ben Elliston wrote:
> I'm really interested to see some screen shots -- can you post a URL or two?
Yeah, why not? Here's the huge (I mean large...) ps file. gzipped.
and the dot input files, (vanilla and edited)
http://pccluster.cs.bilkent.edu.tr/~exa/
I could show it on tk window if tcldot worked with the old tcl/tk version
that sourcenav uses. :( When you guys finish porting that to tcl8.3
we can make this into another navigator window!!!
Happy hacking,
--
Eray (exa) Ozkural
Comp. Sci. Dept., Bilkent University, Ankara
e-mail: erayo@cs.bilkent.edu.tr
www: http://www.cs.bilkent.edu.tr/~erayo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Call Graph Generator
2000-11-02 14:36 ` Eray Ozkural
@ 2000-11-03 1:48 ` Ben Elliston
2000-11-04 17:26 ` Brecht Vermeulen
1 sibling, 0 replies; 6+ messages in thread
From: Ben Elliston @ 2000-11-03 1:48 UTC (permalink / raw)
To: Eray Ozkural; +Cc: sourcenav
I could show it on tk window if tcldot worked with the old tcl/tk
version that sourcenav uses. :( When you guys finish porting that to
tcl8.3 we can make this into another navigator window!!!
Very nice! I think this would be a nice contribution to S-N, even if it's
just a tool that emits the dot files. As for how it could be included in
the product, I'll leave that up to the S-N team to contemplate.
Ben
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Call Graph Generator
2000-11-02 14:36 ` Eray Ozkural
2000-11-03 1:48 ` Ben Elliston
@ 2000-11-04 17:26 ` Brecht Vermeulen
1 sibling, 0 replies; 6+ messages in thread
From: Brecht Vermeulen @ 2000-11-04 17:26 UTC (permalink / raw)
To: Eray Ozkural; +Cc: sourcenav
[-- Attachment #1: Type: text/plain, Size: 2033 bytes --]
Hi,
some other quick hacking (it was my first time in tcl ;-) ) on the Call
Graph Generator which makes it still more interesting to me, so maybe
also to others :
* the edges are drawn in different colors
* calls within the same class are drawn dashed
* constructors are trapeziums
* as third command line argument a file can be optionally given, which
must contain one line with all files (with full path as in the sn project)
separated with a space out of which the functions have to be drawn. This
was handy because otherwise if you have e.g. a server and client with each
a main function, it was drawn as one main function.
Still a problem : if a function of one class calls a function with the
same name on a pointer which refers to another class, then it is drawn as
a loopback, but this seems a problem with the parser of SN, I think.
It would be nice if the instance variables were also drawn for each class
(.iv database) and if optionally also references to these could be drawn.
best regards,
and some cool tools ;-)
Brecht
On Fri, 3 Nov 2000, Eray Ozkural wrote:
> On Fri, Nov 03, 2000 at 08:22:44AM +1100, Ben Elliston wrote:
> > I'm really interested to see some screen shots -- can you post a URL or two?
>
> Yeah, why not? Here's the huge (I mean large...) ps file. gzipped.
>
> and the dot input files, (vanilla and edited)
>
> http://pccluster.cs.bilkent.edu.tr/~exa/
>
> I could show it on tk window if tcldot worked with the old tcl/tk version
> that sourcenav uses. :( When you guys finish porting that to tcl8.3
> we can make this into another navigator window!!!
>
> Happy hacking,
>
> --
> Eray (exa) Ozkural
> Comp. Sci. Dept., Bilkent University, Ankara
> e-mail: erayo@cs.bilkent.edu.tr
> www: http://www.cs.bilkent.edu.tr/~erayo
>
---------------------------------
Brecht Vermeulen
Department of Information Technology (INTEC)
Ghent University - IMEC
Sint-Pietersnieuwstraat 41
B-9000 Gent
Belgium
Phone : +32 9 267 35 86
Fax : +32 9 267 35 99
Email : brecht.vermeulen@intec2.rug.ac.be
[-- Attachment #2: call-graph2.tk.gz --]
[-- Type: application/x-gzip, Size: 2288 bytes --]
[-- Attachment #3: example_NS.dot.gz --]
[-- Type: application/x-gzip, Size: 1500 bytes --]
[-- Attachment #4: example_NS.ps.gz --]
[-- Type: application/x-gzip, Size: 6847 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Call Graph Generator
@ 2000-11-02 18:24 William Gacquer
0 siblings, 0 replies; 6+ messages in thread
From: William Gacquer @ 2000-11-02 18:24 UTC (permalink / raw)
To: Eray Ozkural, Ben Elliston; +Cc: sourcenav
quite good.. in fact, better than the actual ones
-----Original Message-----
From: Eray Ozkural [ mailto:erayo@cs.bilkent.edu.tr ]
Sent: jeudi 2 novembre 2000 23:38
To: Ben Elliston
Cc: sourcenav@sources.redhat.com
Subject: Re: Call Graph Generator
On Fri, Nov 03, 2000 at 08:22:44AM +1100, Ben Elliston wrote:
> I'm really interested to see some screen shots -- can you post a URL or
two?
Yeah, why not? Here's the huge (I mean large...) ps file. gzipped.
and the dot input files, (vanilla and edited)
http://pccluster.cs.bilkent.edu.tr/~exa/
I could show it on tk window if tcldot worked with the old tcl/tk version
that sourcenav uses. :( When you guys finish porting that to tcl8.3
we can make this into another navigator window!!!
Happy hacking,
--
Eray (exa) Ozkural
Comp. Sci. Dept., Bilkent University, Ankara
e-mail: erayo@cs.bilkent.edu.tr
www: http://www.cs.bilkent.edu.tr/~erayo
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-11-04 17:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-02 6:48 Call Graph Generator Eray Ozkural (exa)
2000-11-02 13:23 ` Ben Elliston
2000-11-02 14:36 ` Eray Ozkural
2000-11-03 1:48 ` Ben Elliston
2000-11-04 17:26 ` Brecht Vermeulen
2000-11-02 18:24 William Gacquer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).