Does anyone have any hot tips for profiling/reviewing memory consumption in a KMP/CMP iOS app? When I watch the memory consumption of my CMP app in realtime on the simple debug panel, the memory consumption steadily climbs to around 1.3GB but won't go over that. I do observe some events where memory consumption goes down, which would appear to be a GC operation, but it's certainly nowhere as "resetting" as the Android app which overs around 280MB with frequent, meaningful GCs.
My assumption is that this very well could be some kind of memory leak, but it could also be iOS just allowing more memory consumption out of apps. If I do have a memory leak, is it reasonable to think that this level of memory consumption is unreasonable and should have been cleared up?
👀 3
m
markturnip
12/10/2024, 8:31 AM
This has been a concern of mine whether a CMP uses excessive memory
markturnip
12/10/2024, 8:31 AM
Have you tried simulating memory warnings?
a
Andrew Watson
12/11/2024, 12:29 AM
As an update, one thing I'm seeing is that scrolling through LazyColumn grows the memory consumption without any apparent bounds. It's like it's retaining references to all items instead of recycling and GC'ing