From 22bc875907f3a226d576c103777f14003ee19e94 Mon Sep 17 00:00:00 2001 From: jordanmontt Date: Mon, 23 Oct 2023 21:41:57 +0200 Subject: [PATCH] AllocationRate profiler --- .../IllAllocationRateProfiler.class.st | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/IllimaniProfiler/IllAllocationRateProfiler.class.st b/src/IllimaniProfiler/IllAllocationRateProfiler.class.st index 137eaff..3969c9a 100644 --- a/src/IllimaniProfiler/IllAllocationRateProfiler.class.st +++ b/src/IllimaniProfiler/IllAllocationRateProfiler.class.st @@ -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 [ @@ -46,7 +35,7 @@ IllAllocationRateProfiler >> stats [ { #category : 'accessing' } IllAllocationRateProfiler >> totalAllocatedMemory [ - ^ self objectAllocations sum: #sizeInBytes + ^ totalAllocatedMemory ] { #category : 'accessing' }