Stefan Oltmann
10/05/2023, 5:56 PMkotlin.native.runtime.GC.lastGCInfo?.memoryUsageAfter?.get("heap")?.totalObjectsSizeBytes / 1024 / 1024
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.maxHeapBytes
is Long.MAX_VALUE without autotune and kotlin.native.runtime.GC.targetHeapBytes
is constant 192 MB in my case.
My background is that I want to adjust background work on images according to memory pressure.Landry Norris
10/05/2023, 11:00 PMStefan Oltmann
10/06/2023, 5:31 AMLandry Norris
10/06/2023, 6:02 AMStefan Oltmann
10/06/2023, 7:57 AMNSProcessInfo.processInfo.physicalMemory.toLong() / 2