help-smalltalk
[Top][All Lists]
Advanced

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

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


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

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. 
Note:
* profilerOn and profileOff can be called multiple times.
* you can reset the profiler by 
Smalltalk resetProfiler
* CallGraph new will capture the current profile. You can capture multiple 
profiles.
* the report can be generated in 2 different ways controlled by 
CallGraph seperateBlocks: [true|false]
default is false, which will lump the cost of any block closure into the 
defining method. When true, all block closures will be treated as separate 
entities.

Derek 




reply via email to

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