Tools__ProfilerInfoBuilder.st
author Jan Vrany <jan.vrany@labware.com>
Thu, 06 May 2021 09:04:23 +0100
branchjv
changeset 19599 b49de95fc5a5
parent 18532 cccb41254edf
permissions -rw-r--r--
Flush session changes after a package has been filed out to Tonel repository ...so modified (and filed-out) classes won't show up as modified in tools. This follows the behavior of a regular commit when using CVS or Mercurial.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18532
cccb41254edf Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents: 12431
diff changeset
     1
"{ Encoding: utf8 }"
cccb41254edf Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents: 12431
diff changeset
     2
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     4
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     5
              All Rights Reserved
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     7
Permission is hereby granted, free of charge, to any person
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     8
obtaining a copy of this software and associated documentation
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
     9
files (the 'Software'), to deal in the Software without
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    10
restriction, including without limitation the rights to use,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    11
copy, modify, merge, publish, distribute, sublicense, and/or sell
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    12
copies of the Software, and to permit persons to whom the
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    13
Software is furnished to do so, subject to the following
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    14
conditions:
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    15
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    16
The above copyright notice and this permission notice shall be
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    17
included in all copies or substantial portions of the Software.
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    18
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    19
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    20
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    21
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    22
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    23
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    24
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    25
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    26
OTHER DEALINGS IN THE SOFTWARE.
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"{ Package: 'stx:libtool' }"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
"{ NameSpace: Tools }"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
Object subclass:#ProfilerInfoBuilder
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
	instanceVariableNames:'packages percentageCutOff'
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	classVariableNames:''
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
	poolDictionaries:''
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
	category:'Interface-Browsers-New-Profiler'
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
ProfilerInfoBuilder subclass:#MethodList
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
	instanceVariableNames:'methodsToInfoItems'
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
	classVariableNames:''
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
	poolDictionaries:''
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
	privateIn:ProfilerInfoBuilder
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
!ProfilerInfoBuilder class methodsFor:'documentation'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
copyright
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
"
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    50
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    51
              All Rights Reserved
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    52
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    53
Permission is hereby granted, free of charge, to any person
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    54
obtaining a copy of this software and associated documentation
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    55
files (the 'Software'), to deal in the Software without
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    56
restriction, including without limitation the rights to use,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    57
copy, modify, merge, publish, distribute, sublicense, and/or sell
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    58
copies of the Software, and to permit persons to whom the
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    59
Software is furnished to do so, subject to the following
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    60
conditions:
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
10061
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    62
The above copyright notice and this permission notice shall be
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    63
included in all copies or substantial portions of the Software.
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    64
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    65
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    66
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    67
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    68
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    69
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    70
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    71
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
59848579e0db copyright
Claus Gittinger <cg@exept.de>
parents: 9992
diff changeset
    72
OTHER DEALINGS IN THE SOFTWARE.
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
!ProfilerInfoBuilder class methodsFor:'instance creation'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
new
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    ^ self basicNew initialize.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    "Created: / 01-12-2007 / 22:46:19 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
!ProfilerInfoBuilder methodsFor:'accessing'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
items
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    ^self subclassResponsibility
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    "Created: / 01-12-2007 / 23:40:07 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
packages
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    ^ packages
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    "Created: / 01-12-2007 / 22:45:27 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
packages:something
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    packages := something.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    "Created: / 01-12-2007 / 22:45:27 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
percentageCutOff
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    ^ percentageCutOff ? 0
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    "Created: / 01-12-2007 / 22:45:27 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
percentageCutOff:something
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    percentageCutOff := something.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "Created: / 01-12-2007 / 22:45:27 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
!ProfilerInfoBuilder methodsFor:'initialization'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
initialize
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    "Invoked when a new instance is created."
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    "/ please change as required (and remove this comment)
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
    "/ packages := nil.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    "/ percentageCutOff := nil.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
    "/ super initialize.   -- commented since inherited method does nothing
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
    "Created: / 01-12-2007 / 22:46:19 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
!ProfilerInfoBuilder methodsFor:'testing'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
isFiltered: profileTree
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
    profileTree totalTally < self percentageCutOff ifTrue:[^true].
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
    packages ifNil:[^false].
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
    ^(packages includes: profileTree package) not
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
    "Created: / 01-12-2007 / 22:56:49 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
!ProfilerInfoBuilder::MethodList class methodsFor:'documentation'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
version
12128
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   145
    ^'$Id: Tools__ProfilerInfoBuilder.st 7854 2012-01-30 17:49:41Z vranyj1 $'
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
!ProfilerInfoBuilder::MethodList methodsFor:'accessing'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
items
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
    ^methodsToInfoItems values asSortedCollection:
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
        [:a :b|a tally > b tally]
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    "Created: / 01-12-2007 / 23:40:34 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
!ProfilerInfoBuilder::MethodList methodsFor:'building'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
build: profileTree
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
    (self isFiltered: profileTree) ifFalse:
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
        [(self itemForMethod: profileTree method) tallyAdd: profileTree leafTally].
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
    profileTree called ifNotNil:
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
        [profileTree called do:[:e|self build:e]]
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
    "Created: / 01-12-2007 / 22:49:55 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
!ProfilerInfoBuilder::MethodList methodsFor:'initialization'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
initialize
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
    super initialize.
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
    methodsToInfoItems := Dictionary new
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
    "Modified: / 01-12-2007 / 22:48:43 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
!ProfilerInfoBuilder::MethodList methodsFor:'private'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
itemForMethod: method
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
    ^methodsToInfoItems 
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
        at: method 
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
        ifAbsentPut:[ProfilerInfoItem new method: method]
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
    "Created: / 01-12-2007 / 22:52:35 / janfrog"
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
! !
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
!ProfilerInfoBuilder class methodsFor:'documentation'!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
version_CVS
18532
cccb41254edf Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents: 12431
diff changeset
   194
    ^ '§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
   195
!
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   197
version_HG
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   198
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   199
    ^ '$Changeset: <not expanded> $'
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   200
!
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   201
9992
174bd22eaad5 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
version_SVN
12128
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   203
    ^ '$Id: Tools__ProfilerInfoBuilder.st 7854 2012-01-30 17:49:41Z vranyj1 $'
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   204
! !
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   205