|
Re: Is there a way to watch all the messages flowing in Squeak?: msg#00112lang.smalltalk.squeak.beginners
andy.burnett@xxxxxxxxxxxxxxxxxx wrote:
Debugging the UI is tricky, because the debugger uses the UI. But you can see what methods get called using the profiler. For instance, you can do this in a Workspace to debug the Morphic UI for 4 seconds (4000 msec): now := Time millisecondClockValue. TimeProfileBrowser spyOn: [ [ Time millisecondClockValue - now > 4000 ] whileFalse: [ World doOneCycleNow ] ] After 4 seconds, you will see a TimeProfileBrowser pop up that will show what messages were called, and how many times. This works by interrupting the execution of the block given to spyOn: every millisecond or so, so it can miss methods that don't get called very often or are very fast. You can also use the simulator to run code; this is much slower, but won't miss anything. Note that some primitives (for instance, in the BalloonEngine) won't simulate properly. now := Time millisecondClockValue. MessageTally tallySends: [ [ Time millisecondClockValue - now > 20000 ] whileFalse: [ World doOneCycleNow ] ] -- Ned Konz ned@xxxxxxxxxxxxxx http://bike-nomad.com
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: problem with big dictionary, Klaus D. Witzel |
|---|---|
| Next by Date: | Re: please help, Serge Stinckwich |
| Previous by Thread: | Is there a way to watch all the messages flowing in Squeak?, andy . burnett |
| Next by Thread: | Etoy tutorials on Squeakland and documentation in general, lanas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |