Stefan Oltmann10/05/2023, 5:56 PM
returns a value that's off by 10% to what XCode shows me. Isn't it supposed to be roughly the same? How can I determine the 1,9 GB shown in the screenshot? If that is reached low memory warnings are issued.
kotlin.native.runtime.GC.lastGCInfo?.memoryUsageAfter?.get("heap")?.totalObjectsSizeBytes / 1024 / 1024
is Long.MAX_VALUE without autotune and
is constant 192 MB in my case. My background is that I want to adjust background work on images according to memory pressure.
Landry Norris10/05/2023, 11:00 PM
Stefan Oltmann10/06/2023, 5:31 AM
Landry Norris10/06/2023, 6:02 AM
Stefan Oltmann10/06/2023, 7:57 AM
NSProcessInfo.processInfo.physicalMemory.toLong() / 2