Tools__ProfilerInfoBuilder.st
author Claus Gittinger <cg@exept.de>
Wed, 05 Jun 2019 14:16:59 +0200
changeset 18805 f6df57c6dbfb
parent 10061 59848579e0db
child 12123 4bde08cebd48
permissions -rw-r--r--
#BUGFIX by cg class: AbstractFileBrowser changed: #currentFileNameHolder endless loop if file not present.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     2
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     3
              All Rights Reserved
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     5
Permission is hereby granted, free of charge, to any person
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     6
obtaining a copy of this software and associated documentation
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     7
files (the 'Software'), to deal in the Software without
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     8
restriction, including without limitation the rights to use,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     9
copy, modify, merge, publish, distribute, sublicense, and/or sell
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    10
copies of the Software, and to permit persons to whom the
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    11
Software is furnished to do so, subject to the following
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    12
conditions:
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    13
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    14
The above copyright notice and this permission notice shall be
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    15
included in all copies or substantial portions of the Software.
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    16
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    17
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    18
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    19
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    20
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    21
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    22
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    23
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    24
OTHER DEALINGS IN THE SOFTWARE.
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"{ Package: 'stx:libtool' }"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"{ NameSpace: Tools }"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
Object subclass:#ProfilerInfoBuilder
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
	instanceVariableNames:'packages percentageCutOff'
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
	classVariableNames:''
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
	poolDictionaries:''
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	category:'Interface-Browsers-New-Profiler'
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
ProfilerInfoBuilder subclass:#MethodList
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
	instanceVariableNames:'methodsToInfoItems'
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
	classVariableNames:''
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
	poolDictionaries:''
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
	privateIn:ProfilerInfoBuilder
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
!ProfilerInfoBuilder class methodsFor:'documentation'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
copyright
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
"
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    48
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    49
              All Rights Reserved
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    50
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    51
Permission is hereby granted, free of charge, to any person
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    52
obtaining a copy of this software and associated documentation
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    53
files (the 'Software'), to deal in the Software without
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    54
restriction, including without limitation the rights to use,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    55
copy, modify, merge, publish, distribute, sublicense, and/or sell
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    56
copies of the Software, and to permit persons to whom the
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    57
Software is furnished to do so, subject to the following
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    58
conditions:
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    60
The above copyright notice and this permission notice shall be
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    61
included in all copies or substantial portions of the Software.
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    62
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    63
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    64
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    65
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    66
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    67
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    68
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    69
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    70
OTHER DEALINGS IN THE SOFTWARE.
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
!ProfilerInfoBuilder class methodsFor:'instance creation'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
new
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    ^ self basicNew initialize.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    "Created: / 01-12-2007 / 22:46:19 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
!ProfilerInfoBuilder methodsFor:'accessing'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
items
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
    ^self subclassResponsibility
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    "Created: / 01-12-2007 / 23:40:07 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
packages
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    ^ packages
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    "Created: / 01-12-2007 / 22:45:27 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
packages:something
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    packages := something.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    "Created: / 01-12-2007 / 22:45:27 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
percentageCutOff
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    ^ percentageCutOff ? 0
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    "Created: / 01-12-2007 / 22:45:27 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
percentageCutOff:something
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    percentageCutOff := something.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    "Created: / 01-12-2007 / 22:45:27 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
!ProfilerInfoBuilder methodsFor:'initialization'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
initialize
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
    "Invoked when a new instance is created."
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    "/ please change as required (and remove this comment)
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
    "/ packages := nil.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    "/ percentageCutOff := nil.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    "/ super initialize.   -- commented since inherited method does nothing
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
    "Created: / 01-12-2007 / 22:46:19 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
!ProfilerInfoBuilder methodsFor:'testing'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
isFiltered: profileTree
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
    profileTree totalTally < self percentageCutOff ifTrue:[^true].
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    packages ifNil:[^false].
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
    ^(packages includes: profileTree package) not
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
    "Created: / 01-12-2007 / 22:56:49 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
!ProfilerInfoBuilder::MethodList class methodsFor:'documentation'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
version
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
   143
    ^'$Id: Tools__ProfilerInfoBuilder.st,v 1.2 2011-07-03 17:46:45 cg Exp $'
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
!ProfilerInfoBuilder::MethodList methodsFor:'accessing'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
items
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    ^methodsToInfoItems values asSortedCollection:
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
        [:a :b|a tally > b tally]
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
    "Created: / 01-12-2007 / 23:40:34 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
!ProfilerInfoBuilder::MethodList methodsFor:'building'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
build: profileTree
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
    (self isFiltered: profileTree) ifFalse:
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
        [(self itemForMethod: profileTree method) tallyAdd: profileTree leafTally].
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
    profileTree called ifNotNil:
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
        [profileTree called do:[:e|self build:e]]
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    "Created: / 01-12-2007 / 22:49:55 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
!ProfilerInfoBuilder::MethodList methodsFor:'initialization'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
initialize
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
    super initialize.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
    methodsToInfoItems := Dictionary new
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
    "Modified: / 01-12-2007 / 22:48:43 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
!ProfilerInfoBuilder::MethodList methodsFor:'private'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
itemForMethod: method
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
    ^methodsToInfoItems 
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
        at: method 
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
        ifAbsentPut:[ProfilerInfoItem new method: method]
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
    "Created: / 01-12-2007 / 22:52:35 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
!ProfilerInfoBuilder class methodsFor:'documentation'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
version_CVS
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
   192
    ^ '$Header: /cvs/stx/stx/libtool/Tools__ProfilerInfoBuilder.st,v 1.2 2011-07-03 17:46:45 cg Exp $'
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
version_SVN
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
    ^ '§Id: Tools__ProfilerInfoBuilder.st 7486 2009-10-26 22:06:24Z vranyj1 §'
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
! !