[squeak-dev] Re: How to profile a server image?

John M McIntosh johnmci at smalltalkconsulting.com
Sun Mar 1 00:35:27 UTC 2009


Oops you CANN'T just call checkForInterrupts from  
dispatchFunctionPointer that makes squirrel food of object memory  
later in time (no idea why).

The safe way is to get the before and after time, then if they are  
different then call forceInterruptCheck


On 28-Feb-09, at 3:34 PM, John M McIntosh wrote:

>
> On 28-Feb-09, at 10:45 AM, Andreas Raab wrote:
>
>> ---------------------
>> Unfortunately, recent VMs have a problem with spy accuracy since an  
>> important timer check was removed from the VM (I didn't notice that  
>> at the time it happened). This *heavily* affects the profiler, for  
>> example, try this:
>>
>> 	MessageTally spyOn:[
>> 		1 to: 100 do:[:i|
>> 			Display fillWhite.
>> 			'Hello', ' World'.
>> 		].
>> 	].
>
>
> Ah you mean perhaps the removal of the checkForInterrupts() which  
> *could/might* occur after the call in
>
> dispatchFunctionPointer
>
> I'm just guessing of course, mind adding in a clock check on every  
> primitive call will result in a small amount of overhead.
>
>
> --
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> John M. McIntosh <johnmci at smalltalkconsulting.com>
> Corporate Smalltalk Consulting Ltd.  http:// 
> www.smalltalkconsulting.com
> = 
> = 
> = 
> = 
> = 
> ======================================================================
>
>
>

--
= 
= 
= 
========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
= 
= 
= 
========================================================================






More information about the Squeak-dev mailing list