Petteri wrote:
> I'm looking for a smalltalk environment for implementing a performance
> profiling tool. To do this I would need to add some data collection
> code to the method execution interface, so that the tool would work
> for with any objects. Do you know if I would be able to do this with
> the Dolphin Smalltalk?
It seems to me that there are at least three ways you could approach this:
You could use a modified VM that included instrumentation. That's something
that you'll only get with cooperation from OA -- and presumably that'd cost
money if they were willing to consider it at all (I have no idea). You might
find that Squeak or GNUSt was a better starting point if you want to take this
approach.
You could use method re-writing after the style of John Brant's "Method
Wrappers" (see
http://st-www.cs.uiuc.edu/users/brant/Applications/WrapperApplications.htmlof which there seems to be a Dolphin port by Andres Otaduy at:
<
http://www.smalltalking.net/Goodies/Dolphin/>
You could use a polling approach, and sample the stack at intervals. That is
how Ian Bartholemew's profiler for Dolphin works, for example. You can find
Ian's profiler at:
<
http://www.idb.me.uk/goodies5/profiler.html>
-- chris