-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CallTargetBrowserRuby for TruffleRuby
- Refactor and improve CallTargetBrowser to allow sharing - Update a test
- Loading branch information
Showing
53 changed files
with
321 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/class/callTargetFor.of..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
helpers | ||
callTargetFor: aMethodName of: aModuleName | ||
^ (TruffleSqueakUtilities primitiveGetVMObject: ( | ||
self methodFor: aMethodName of: aModuleName)) | ||
method callTarget |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/class/methodFor.of..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
helpers | ||
methodFor: aMethodName of: aModuleName | ||
^ self methodGetter value: aModuleName value: aMethodName |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/class/methodGetter.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
helpers | ||
methodGetter | ||
"MethodGetter := nil" | ||
^ MethodGetter ifNil: [ MethodGetter := Polyglot eval: 'ruby' string: | ||
'Proc.new{|mod_name,meth_name| m1 = Object.const_get(mod_name); m2 = meth_name.to_s.to_sym; if m1.methods(false).include?(m2);m1.method(m2);else;m1.instance_method(m2);end}' ] |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/class/methodList..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
helpers | ||
methodList: aModuleName | ||
^ ((self methodListGetter value: aModuleName) asCollection | ||
collect: [:ea | ea asString]) sorted |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/class/methodListGetter.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
helpers | ||
methodListGetter | ||
"MethodListGetter := nil" | ||
^ MethodListGetter ifNil: [ MethodListGetter := Polyglot eval: 'ruby' string: | ||
'Proc.new{|mod_name| m = Object.const_get(mod_name); m.methods(false).concat(m.instance_methods(false))}' ] |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/class/open.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
opening | ||
open | ||
self new open |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/autoUpdate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
autoUpdate | ||
^ autoUpdate ifNil: [ autoUpdate := true ] |
8 changes: 8 additions & 0 deletions
8
...Squeak-Utilities.package/CallTargetBrowserRuby.class/instance/buildCallTargetPaneWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
toolbuilder | ||
buildCallTargetPaneWith: builder | ||
| textSpec | | ||
textSpec := builder pluggableTextSpec new. | ||
textSpec | ||
model: self; | ||
getText: #callTargetInfo. | ||
^ textSpec |
12 changes: 12 additions & 0 deletions
12
...ffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/buildMethodListWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
toolbuilder | ||
buildMethodListWith: builder | ||
| listSpec | | ||
listSpec := builder pluggableListSpec new. | ||
listSpec | ||
model: self; | ||
list: #methodList; | ||
getIndex: #methodListIndex; | ||
setIndex: #methodListIndex:; | ||
icon: #methodIconAt:; | ||
menu: #methodListMenu:. | ||
^ listSpec |
10 changes: 10 additions & 0 deletions
10
...ffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/buildModuleListWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
toolbuilder | ||
buildModuleListWith: builder | ||
| listSpec | | ||
listSpec := builder pluggableListSpec new. | ||
listSpec | ||
model: self; | ||
list: #moduleList; | ||
getIndex: #moduleListIndex; | ||
setIndex: #moduleListIndex:. | ||
^ listSpec |
7 changes: 7 additions & 0 deletions
7
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/buildWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
toolbuilder | ||
buildWith: builder | ||
^ builder build: (self buildWindowWith: builder specs: { | ||
(0@0 corner: 0.25@1) -> [self buildModuleListWith: builder]. | ||
(0.25@0 corner: 0.5@1) -> [self buildMethodListWith: builder]. | ||
(0.5@0 corner: 1@1) -> [self buildCallTargetPaneWith: builder]. | ||
}) |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/callTargetInfo.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
call targets | ||
callTargetInfo | ||
^ self selectedCallTarget | ||
ifNotNil: [ :c | CallTargetBrowser callTargetInfoStringFor: c ] | ||
ifNil: [ 'no call target available' ] |
20 changes: 20 additions & 0 deletions
20
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/countsToMethods..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
methods | ||
countsToMethods: aMethodList | ||
| result | | ||
result := Dictionary new. | ||
aMethodList do: [ :ea | | callTarget | | ||
callTarget := (self class callTargetFor: ea of: self selectedModuleName). | ||
result | ||
at: (callTarget ifNil: [-1] ifNotNil: [ :c | | ||
self sortBy caseOf: { | ||
[#callCount] -> [ | v | | ||
v := c getCallCount. | ||
v > 0 ifTrue: [ v ln ] ifFalse: [ v ] ]. | ||
[#callAndLoopCount] -> [ | v | | ||
v := c getCallAndLoopCount. | ||
v > 0 ifTrue: [ v ln ] ifFalse: [ v ] ]. | ||
[#knownCallSiteCount] -> [ c getKnownCallSiteCount ]. | ||
[#nonTrivialNodeCount] -> [ c getNonTrivialNodeCount ] } ] ) | ||
ifPresent: [ :v | v add: ea asString ] | ||
ifAbsentPut: [ OrderedCollection with: ea ] ]. | ||
^ result |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/initialExtent.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
overrides | ||
initialExtent | ||
^ 800 @ 400 |
3 changes: 3 additions & 0 deletions
3
...TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/inspectCallTarget.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
call targets | ||
inspectCallTarget | ||
self selectedCallTarget inspect |
7 changes: 7 additions & 0 deletions
7
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/labelString.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
toolbuilder | ||
labelString | ||
| label | | ||
label := 'CallTargetBrowser for TruffleRuby'. | ||
self selectedModuleName | ||
ifNotNil: [ :name | label := label, ': ', name ]. | ||
^ label |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/methodIconAt..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
methods | ||
methodIconAt: anIndex | ||
^ nil |
16 changes: 16 additions & 0 deletions
16
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/methodList.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
methods | ||
methodList | ||
| methods countsToMessages sortedCounts highestCount result | | ||
methods := self selectedMethods. | ||
(self sortBy == #alphabetically or: [ methods isEmpty]) | ||
ifTrue: [ ^ methods ]. | ||
countsToMessages := self countsToMethods: methods. | ||
result := OrderedCollection new. | ||
sortedCounts := countsToMessages keysInOrder reversed. | ||
highestCount := sortedCounts first max: 1. | ||
sortedCounts do: [ :count | | ||
result addAll: ((countsToMessages at: count) collect: [ :ea | | ||
ea asText | ||
addAttribute: (CallTargetBrowser textColorFor: count with: highestCount) | ||
yourself])]. | ||
^ result |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/methodListIndex..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
methods | ||
methodListIndex: anInteger | ||
self selectedMethodName: (self methodList at: anInteger ifPresent: [ :t | t asString ] ifAbsent: [ nil ]) |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/methodListIndex.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
methods | ||
methodListIndex | ||
^ self methodList indexOf: self selectedMethodName |
14 changes: 14 additions & 0 deletions
14
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/methodListMenu..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
methods | ||
methodListMenu: aMenu | ||
^ aMenu | ||
add: 'inspect method' action: #inspectMethod; | ||
add: 'inspect call target' action: #inspectCallTarget; | ||
addLine; | ||
add: ('toggle auto-update ', (self autoUpdate ifTrue: [ '(on)' ] ifFalse: [ '(off)' ])) action: #toggleAutoUpdate; | ||
addLine; | ||
add: 'sort alphabetically' action: #sortAlphabetically; | ||
add: 'sort by call and loop count (default)' action: #sortByCallAndLoopCount; | ||
add: 'sort by call count' action: #sortByCallCount; | ||
add: 'sort by known call site count' action: #sortByKnownCallSiteCount; | ||
add: 'sort by non-trivial node count' action: #sortByNonTrivialNodeCount; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/moduleList.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
modules | ||
moduleList | ||
^ ((Polyglot eval: 'ruby' string: 'Object.constants') | ||
asCollection collect: [ :ea | ea asString ]) sorted |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/moduleListIndex..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
modules | ||
moduleListIndex: anInteger | ||
self selectedModuleName: (self moduleList at: anInteger ifAbsent: [ nil ]) |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/moduleListIndex.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
modules | ||
moduleListIndex | ||
^ self moduleList indexOf: self selectedModuleName |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/open.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
initialize-release | ||
open | ||
^ ToolBuilder open: self |
8 changes: 8 additions & 0 deletions
8
...ruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/selectedCallTarget.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
call targets | ||
selectedCallTarget | ||
^ self selectedModuleName | ||
ifNil: [ nil ] | ||
ifNotNil: [ :moduleName | | ||
self selectedMethodName | ||
ifNil: [ nil ] | ||
ifNotNil: [ :methodName | self class callTargetFor: methodName of: moduleName] ] |
8 changes: 8 additions & 0 deletions
8
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/selectedMethod.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
methods | ||
selectedMethod | ||
^ self selectedModuleName | ||
ifNil: [ nil ] | ||
ifNotNil: [ :moduleName | | ||
self selectedMethodName | ||
ifNil: [ nil ] | ||
ifNotNil: [ :methodName | self class methodFor: methodName of: moduleName] ] |
6 changes: 6 additions & 0 deletions
6
...uffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/selectedMethodName..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
accessing | ||
selectedMethodName: anObject | ||
|
||
selectedMethodName := anObject. | ||
self changed: #methodListIndex. | ||
self changed: #callTargetInfo. |
4 changes: 4 additions & 0 deletions
4
...ruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/selectedMethodName.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
selectedMethodName | ||
|
||
^ selectedMethodName |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/selectedMethods.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
methods | ||
selectedMethods | ||
^ self selectedModuleName | ||
ifNotNil: [ :name | self class methodList: name ] | ||
ifNil: [ #() ] |
8 changes: 8 additions & 0 deletions
8
...uffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/selectedModuleName..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
accessing | ||
selectedModuleName: anObject | ||
|
||
selectedModuleName := anObject. | ||
selectedMethodName := nil. | ||
self changed: #moduleListIndex. | ||
self changed: #methodList. | ||
self changed: #relabel. |
4 changes: 4 additions & 0 deletions
4
...ruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/selectedModuleName.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
selectedModuleName | ||
|
||
^ selectedModuleName |
3 changes: 3 additions & 0 deletions
3
...ruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/sortAlphabetically.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sorting | ||
sortAlphabetically | ||
self sortBy: #alphabetically |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/sortBy..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sorting | ||
sortBy: anObject | ||
|
||
sortBy := anObject. | ||
self changed: #methodList |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/sortBy.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sorting | ||
sortBy | ||
|
||
^ sortBy ifNil: [ sortBy := #callAndLoopCount ] |
3 changes: 3 additions & 0 deletions
3
...leSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/sortByCallAndLoopCount.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sorting | ||
sortByCallAndLoopCount | ||
self sortBy: #callAndLoopCount |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Utilities.package/CallTargetBrowserRuby.class/instance/sortByCallCount.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sorting | ||
sortByCallCount | ||
self sortBy: #callCount |
3 changes: 3 additions & 0 deletions
3
...Squeak-Utilities.package/CallTargetBrowserRuby.class/instance/sortByKnownCallSiteCount.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sorting | ||
sortByKnownCallSiteCount | ||
self sortBy: #knownCallSiteCount |
Oops, something went wrong.