Skip to content

Commit

Permalink
Increased time limit for test
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanmontt committed Sep 24, 2024
1 parent c5ea633 commit cec9fab
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/IllimaniProfiler-Tests/IllMemoryProfilerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ IllMemoryProfilerTest >> testProfileOnFinalizesCorrectly [

| timeNow |

self timeLimit: 1 minute.

"The lifetime is calculated in terms of allocated bytes"
timeNow := Smalltalk vm parameterAt: 34.
profiler profileOn: [ 10 timesRepeat: [ IllMemoryProfiler new ] ].
Expand Down
7 changes: 7 additions & 0 deletions src/IllimaniProfiler/IllAllocationSiteBin.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ IllAllocationSiteBin >> initialize [
shortLivedObjects := OrderedCollection new
]

{ #category : 'inspector' }
IllAllocationSiteBin >> inspectorAllocSite [

<inspectorPresentationOrder: 901 title: 'Allocation site'>
^ allocationSite inspectionSource
]

{ #category : 'accessing' }
IllAllocationSiteBin >> longLivedObjects [

Expand Down
9 changes: 9 additions & 0 deletions src/IllimaniProfiler/IllAnalyzer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,15 @@ IllAnalyzer >> pruneAllocationSites [
allocationSiteBin totalAllocations < (v * totalProgramAllocations) ]
]

{ #category : 'api' }
IllAnalyzer >> setForProfiler: profiler [

self
objectAllocations: profiler objectAllocations;
endTime: profiler endTime;
startTime: profiler startTime
]

{ #category : 'accessing' }
IllAnalyzer >> shortObjectsBin [

Expand Down
6 changes: 6 additions & 0 deletions src/IllimaniProfiler/IllPredictator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ IllPredictator >> objectAllocations: aCollection [

objectAllocations := aCollection
]

{ #category : 'initialization' }
IllPredictator >> setForProfiler: aProfiler [

self objectAllocations: aProfiler objectAllocations
]

0 comments on commit cec9fab

Please sign in to comment.