|
Class: Profiler (in Tools)
Object
|
+--MessageTally
|
+--Tools::Profiler
- Package:
- stx:libtool
- Category:
- Interface-Browsers-New-Profiler
- Version:
- rev:
1.5
date: 2012/11/04 21:42:25
- user: cg
- file: Tools__Profiler.st directory: libtool
- module: stx stc-classLibrary: libtool
a visual profiler;
provides the same interface as a MessageTally, but does not show the
sample data on a stream, instead a browser is opened, allowing easy
navigation through the sampled code.
instance creation
-
readStatisticsFrom: stream
-
messageTally compatible interface
-
spyDetailedOn: aBlock
-
execute a Block; then open a visual profiler.
Return the value from aBlock
-
spyOn: aBlock
-
execute a Block; then open a visual profiler.
Return the value from aBlock
-
spyOn: aBlock interval: interval
-
execute a Block; then open a visual profiler.
Return the value from aBlock
profiling
-
profile: aBlock
-
run aBlock, return profile information
-
profileAndOpenBrowser: aBlock
-
run aBlock, open a browser on the profile information; sample tick is 10ms
usage example(s):
Tools::Profiler profileAndOpenBrowser:[ 10000 timesRepeat:[100 factorial] ]
|
-
profileDetailedOn: aBlock
-
run aBlock, return profile information; sample tick is 1ms
-
profileOn: aBlock
-
run aBlock, return profile information; sample tick is 10ms
-
profileOn: aBlock interval: interval
-
run aBlock, return profile information; sample tick is interval (ms)
I/O
-
storeStatisticsOn: stream
-
accessing
-
computationTime
-
-
notes
-
-
notes: something
-
-
retVal
-
-
startTimestamp
-
profiling
-
profileOn: aBlock interval: interval
-
| profiler |
profiler := Tools::Profiler profileOn:[1 to: 1000 do:[:i|i factorial]] interval: 10.
Tools::NewSystemBrowser browseProfilerStatistics: profiler
|
Tools::Profiler spyOn:[1 to: 1000 do:[:i|i factorial]] interval: 10.
|
|