Skip to content

Commit

Permalink
AllocationRate profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanmontt committed Oct 23, 2023
1 parent 341b169 commit 22bc875
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/IllimaniProfiler/IllAllocationRateProfiler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ IllAllocationRateProfiler >> internalRegisterAllocation: anObject [
totalAllocatedMemory := totalAllocatedMemory + anObject sizeInMemory
]

{ #category : 'accessing' }
IllAllocationRateProfiler >> objectAllocations [

objectAllocations ifNil: [
objectAllocations := (1 to: numberOfAllocatios) collect: [ :assoc |
AllocationBasicInfoModel new
sizeInBytes: assoc value;
yourself ] ].
^ objectAllocations
]

{ #category : 'accessing - statistics' }
IllAllocationRateProfiler >> stats [

Expand All @@ -46,7 +35,7 @@ IllAllocationRateProfiler >> stats [
{ #category : 'accessing' }
IllAllocationRateProfiler >> totalAllocatedMemory [

^ self objectAllocations sum: #sizeInBytes
^ totalAllocatedMemory
]

{ #category : 'accessing' }
Expand Down

0 comments on commit 22bc875

Please sign in to comment.