Skip to content

Commit

Permalink
Context fingerprint: adding clause to check if the sender is nil. Imp…
Browse files Browse the repository at this point in the history
…roving inspector extension
  • Loading branch information
jordanmontt committed Jul 17, 2024
1 parent e208bf5 commit ab36cc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IllimaniProfiler/AllocationSiteInfoModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ AllocationSiteInfoModel >> contextFingerprint: aContext [
sender := aContext.
"10 is the size of the arrat of contextFingerPrint"
1 to: 10 do: [ :i |
sender ifNil: [ ^ self ].
contextFingerprint at: i put: sender method.
sender := sender sender ]
]
Expand Down Expand Up @@ -148,7 +149,7 @@ AllocationSiteInfoModel >> inspectorExtensionContextFingerprint: aBuilder [
<inspectorPresentationOrder: 2 title: 'Context Fingerprint'>
^ aBuilder newList
items: contextFingerprint;
display: [ :aMethod | aMethod name ];
display: [ :aMethod | "we ask the method because of the compiled blocks" aMethod method name ];
yourself
]

Expand Down

0 comments on commit ab36cc7

Please sign in to comment.