help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] PATCH0/2: byte code profiling for gst


From: Derek Zhou
Subject: Re: [Help-smalltalk] PATCH0/2: byte code profiling for gst
Date: Sun, 8 Feb 2009 13:04:15 -0800
User-agent: KMail/1.9.9

On Sunday 08 February 2009 12:02:39 pm Derek Zhou wrote:
> These patches add profiling support to gst. 
> Usage:
> 
> Smalltalk profileOn.
> ... [ the code you want to profile ]
> Smalltalk profileOff.
> CallGraph new printCallGraphToFile: 'profile.out'.
> 
> Which will generate a callgrind compatible profile 'profile.out' which can be 
> viewed by kcachegrind. 

A few known caveats:
* byte code counter may not reflect actual execution time very well.
* As most other profilers, the inclusive costs are estimated by weighted sum of 
all subroutine calls.  
* the per method byte code counter is a SmallInteger (for speed) and with 
modern processor it does not take long (a few minutes) to overflow it (on a 32 
bit machine it max at ~ 1 billion). Don't have the profiler on for too long. 

Derek




reply via email to

[Prev in Thread] Current Thread [Next in Thread]