Does anyone have any hot tips for profiling/review...
# compose-ios
a
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
This has been a concern of mine whether a CMP uses excessive memory
Have you tried simulating memory warnings?
a
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