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 


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to