[ANN] GraphViz for Squeak

Alexander Lazarević Alexander at lazarevic.de
Thu Mar 3 06:39:34 UTC 2005


Hi John!

This is very interesting. I was working on somthing similiar. My
approach was much simpler. Just a generator for a dot file that traverse
existing graphs in the system, like the class hierarchy (see image).
Another thing I did want to draw as a graph was the sequence of sends. I
think only in Squeak you can do the very cool thing:

ContextPart trace: [1 printString]

and get in the Transcript

 1 printString
  1 printStringBase:
   1 negative ^false
  1 printStringBase:
   String new ^''
  1 printStringBase:
   WriteStream on:
    unprintable WriteStream on:
     unprintable WriteStream on:
      a WriteStream '' reset
       0 max: ^0
      a WriteStream '' reset ^a WriteStream ''
     a WriteStream '' on: ^a WriteStream ''
    a WriteStream '' on: ^a WriteStream ''
   WriteStream on: ^a WriteStream ''
  1 printStringBase:
   Character digitValue: ^$1
  1 printStringBase:
   a WriteStream '' nextPut:
    a WriteStream '' pastEndPut:
     0 max: ^20
    a WriteStream '' pastEndPut:
     20 min: ^20
    a WriteStream '' pastEndPut: ^a WriteStream '1'
   a WriteStream '1' nextPut: ^a WriteStream '1'
  1 printStringBase:
   a WriteStream '1' contents
    1 max: ^1
   a WriteStream '1' contents
    '1'

I was just to turn this into a graph when I saw your mail. I will
definitely look at your package once it is up on SM.

Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqueakGraph.png
Type: image/png
Size: 3782 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050303/b13e72a1/SqueakGraph.png


More information about the Squeak-dev mailing list