Tools__Profiler.st
author Claus Gittinger <cg@exept.de>
Fri, 01 Jun 2012 10:38:21 +0200
changeset 11531 f5f8306664d7
parent 10060 cb3aa9c7ad8f
child 12023 db541e9a6fc1
child 12123 4bde08cebd48
permissions -rw-r--r--
class definition
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9991
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
10060
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
     2
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
     3
              All Rights Reserved
9991
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
10060
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
     5
Permission is hereby granted, free of charge, to any person
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
     6
obtaining a copy of this software and associated documentation
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
     7
files (the 'Software'), to deal in the Software without
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
     8
restriction, including without limitation the rights to use,
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
     9
copy, modify, merge, publish, distribute, sublicense, and/or sell
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    10
copies of the Software, and to permit persons to whom the
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    11
Software is furnished to do so, subject to the following
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    12
conditions:
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    13
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    14
The above copyright notice and this permission notice shall be
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    15
included in all copies or substantial portions of the Software.
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    16
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    17
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    18
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    19
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    20
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    21
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    22
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    23
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    24
OTHER DEALINGS IN THE SOFTWARE.
9991
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"{ Package: 'stx:libtool' }"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"{ NameSpace: Tools }"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
MessageTally subclass:#Profiler
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
	instanceVariableNames:'startTimestamp notes'
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
	classVariableNames:''
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
	poolDictionaries:''
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	category:'Interface-Browsers-New-Profiler'
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!Profiler class methodsFor:'documentation'!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
copyright
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
"
10060
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    41
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    42
              All Rights Reserved
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    43
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    44
Permission is hereby granted, free of charge, to any person
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    45
obtaining a copy of this software and associated documentation
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    46
files (the 'Software'), to deal in the Software without
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    47
restriction, including without limitation the rights to use,
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    48
copy, modify, merge, publish, distribute, sublicense, and/or sell
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    49
copies of the Software, and to permit persons to whom the
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    50
Software is furnished to do so, subject to the following
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    51
conditions:
9991
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
10060
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    53
The above copyright notice and this permission notice shall be
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    54
included in all copies or substantial portions of the Software.
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    55
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    56
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    57
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    58
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    59
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    60
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    61
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    62
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
    63
OTHER DEALINGS IN THE SOFTWARE.
9991
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
example1
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    | profiler |
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    profiler := Tools::Profiler spyOn:[1 to: 1000 do:[:i|i factorial]] interval: 10.
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    Tools::NewSystemBrowser browseProfilerStatistics: profiler
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    "
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
        Profiler example1
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    "
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
! !
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
!Profiler class methodsFor:'instance creation'!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
readStatisticsFrom: stream
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
    ^BinaryInputManager readFrom: stream
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
    "Created: / 24-11-2007 / 09:24:12 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
! !
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
!Profiler class methodsFor:'profiling'!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
profile: aBlock
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
    ^self spyOn: aBlock
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    "Created: / 18-02-2008 / 20:24:08 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
profileAndOpenBrowser: aBlock
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    Tools::NewSystemBrowser browseProfilerStatistics: 
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
                (self profile: aBlock)
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    "
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
        Tools::Profiler profileAndOpenBrowser:[ 10000 timesRepeat:[100 factorial] ] 
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
    "
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    "Created: / 18-02-2008 / 20:24:56 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    "Modified: / 18-02-2008 / 22:16:29 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
spyOn: aBlock
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    ^self spyOn: aBlock interval: 1
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
    "Created: / 24-11-2007 / 08:31:22 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "Modified: / 25-12-2008 / 20:39:33 / Jan Vrany <vranyj1@fel.cvut.cz>"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
spyOn: aBlock interval: interval
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
    ^self new spyOn: aBlock interval: interval
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
    "Created: / 24-11-2007 / 08:25:37 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
! !
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
!Profiler methodsFor:'I/O'!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
storeStatisticsOn: stream
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
    ^BinaryOutputManager store: self on: stream
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    "Created: / 24-11-2007 / 09:23:11 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
! !
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
!Profiler methodsFor:'accessing'!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
computationTime
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
    ^ endTime - startTime
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
    "Created: / 24-11-2007 / 08:41:33 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
notes
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
    ^ notes
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
    "Created: / 24-11-2007 / 09:24:50 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
notes:something
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
    notes := something.
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    "Created: / 24-11-2007 / 09:24:50 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
startTimestamp
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
    ^ startTimestamp
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
    "Created: / 24-11-2007 / 09:01:12 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
! !
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
!Profiler methodsFor:'profiling'!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
spyOn: aBlock interval: interval
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
    startTimestamp := Timestamp now.
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
    super spyOn: aBlock interval: interval.
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    self nTally isZero ifFalse:[self tree computePercentage: self nTally].
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
    ^self
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
    "Created: / 24-11-2007 / 08:21:28 / janfrog"
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
! !
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
!Profiler class methodsFor:'documentation'!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
version_CVS
10060
cb3aa9c7ad8f copyright
Claus Gittinger <cg@exept.de>
parents: 9991
diff changeset
   174
    ^ '$Header: /cvs/stx/stx/libtool/Tools__Profiler.st,v 1.2 2011-07-03 17:46:43 cg Exp $'
9991
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
!
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
version_SVN
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
    ^ '§Id: Tools__Profiler.st 7486 2009-10-26 22:06:24Z vranyj1 §'
5d0495aa2e5e initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
! !