Skip to content

Commit

Permalink
Added context fingerprint implementation. But not using it for the mo…
Browse files Browse the repository at this point in the history
…ment because a recursion problem with method proxies
  • Loading branch information
jordanmontt committed Feb 2, 2024
1 parent 9b18da0 commit 2c9f8d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/IllimaniProfiler/AllocationSiteInfoModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ AllocationSiteInfoModel >> contextFingerprint [
{ #category : 'accessing' }
AllocationSiteInfoModel >> contextFingerprint: aContext [

contextFingerprint := self getContextFingerprint: aContext
contextFingerprint := String streamContents: [ :stream | aContext debugStack: 5 on: stream ]
]

{ #category : 'accessing' }
Expand All @@ -66,12 +66,6 @@ AllocationSiteInfoModel >> fullMethodName [
^ allocatorMethod name
]

{ #category : 'initialization' }
AllocationSiteInfoModel >> getContextFingerprint: aContext [

^ "String streamContents: [ :stream | aContext debugStack: 2 on: stream ]" aContext asString
]

{ #category : 'inspector - extensions' }
AllocationSiteInfoModel >> inspectableAssociations [

Expand Down
2 changes: 1 addition & 1 deletion src/IllimaniProfiler/IllAllocationProfiler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ IllAllocationProfiler >> internalRegisterAllocation: newlyAllocatedObject [
allocatorClass: filteredContext receiver class;
allocatorMethod: filteredContext compiledCode method;
allocatedObjectClass: newlyAllocatedObject class;
contextFingerprint: filteredContext;
"contextFingerprint: filteredContext;"
sizeInBytes: newlyAllocatedObject sizeInMemory;
initializationTime: Time primUTCMicrosecondsClock.

Expand Down

0 comments on commit 2c9f8d8

Please sign in to comment.