Mondrian visualization of a Tweak ScriptEventTracer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Mondrian visualization of a Tweak ScriptEventTracer

Jens Lincke
Hi,

For debugging Script Events I made a visualization of a
ScriptEventTracer using the Squeak port of Mondrian.

A visualization of a selectionChanged event in a SophieBookModel looks
like this:

http://impara.de/~jens/EventTracer_SelectionChanged.png


I made a Tweak interface for this:

to open a Tracer for anObject do the following in Tweak.

        anObject openEventTracerOn: #anEventSelector

Then a widow opens, which shows you the number of the traced events.
Press stop to stop tracing and to open the mondrian visualization.

The Monticello package is Tweak-MondrianEventTracer
at http://source.impara.de/TweakUtilities


Thanks to the creators of Mondrian, it is a really cool tool :-)


- Jens Lincke -

Reply | Threaded
Open this post in threaded view
|

Re: Mondrian visualization of a Tweak ScriptEventTracer

Herbert König
Hello Jens,


JL> For debugging Script Events I made a visualization of a
JL> ScriptEventTracer using the Squeak port of Mondrian.

I was very impressed with Tudor's demo of Mondrian on the last Berne
Smalltalk day. Wanted to try the squeak port and found out that the
original examples don't work due to changes of the interface in
Squeak.

Did you manage to find some documentation about the differences
between the VW implementation and the Squeak port?

If so, I'd be grateful for a pointer.

JL> The Monticello package is Tweak-MondrianEventTracer
JL> at http://source.impara.de/TweakUtilities

If not, next time I give Mondrian a try, I hope I can dig up some
exampled from there.

JL> Thanks to the creators of Mondrian, it is a really cool tool :-)

Definitely, I see it as a data-mining tool, among its other uses.


Thanks,

Herbert                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Re: Mondrian visualization of a Tweak ScriptEventTracer

Lukas Renggli
> I was very impressed with Tudor's demo of Mondrian on the last Berne
> Smalltalk day. Wanted to try the squeak port and found out that the
> original examples don't work due to changes of the interface in
> Squeak.
>
> Did you manage to find some documentation about the differences
> between the VW implementation and the Squeak port?

The Squeak "port" is not a port of the VisualWorks Mondrian per se. It
is basically a new implementation based on some of the ideas in
VisualWorks. The first Monticello commits actually contained all the
code of VisualWorks, however I quickly moved away from it as it was
easier to make it work by starting from scratch.

The differences between the implementation have been discussed in
length in the setools mailing list:
http://lists.squeakfoundation.org/mailman/listinfo/setools.

The key differences of the Squeak implementation are:
- no distinction of nodes and edges, everything is an element
- all the elements are hierarchically ordered in one tree
- layers and slices are introduced, to selectively apply layouts
- events are handled following the ideas of the w3c xml event model

Moreover in the latest version (not really useable yet):
- elements and styles build a composite with decorations
- transformations can be applied to elements

It would be certainly possible to make the interface conform the
interface in VisualWorks, however I prefer my own ;-) Most (or
probably all) the examples you saw were using Moose that is only
available in VisualWorks anyway. Therefor reusing the examples would
be also limited if the API was the same.

> If not, next time I give Mondrian a try, I hope I can dig up some
> exampled from there.

The class side of MOPaintings has a couple of examples.



--
Lukas Renggli
http://www.lukas-renggli.ch

Reply | Threaded
Open this post in threaded view
|

Re: Mondrian visualization of a Tweak ScriptEventTracer

Jens Lincke
In reply to this post by Herbert König
I read the paper after I tried out Mondrian for squeak, so my only
documentation were the examples in MOPainting. For example
classInheritanceOf: and systemComplexityOf: