[Newbies] How do I profile an application in Squeak?

Herbert König herbertkoenig at gmx.net
Fri Jan 4 07:45:39 UTC 2013

Hi Clinton
> How do I profile an application running on squeak (2.8, I'm afraid) so 
> as to see where time is being spent in order to know where to optimise?
don't know about 2.8 but MessageTally has been around for very long. The 
methods you invoke are on class side.

MessageTally spyOn: aBlock   is the classical incantation which tells 
you the percentage of time spent in your methods.
MessageTally tallySends: tells you how often a messge gets send.

One thing you might want to change is is MessageTally class 
defaultMaxTabs to return 120, I remember in old images a too small 
number would prevent proper indentation of deeply nested sends.




More information about the Beginners mailing list