https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
j

jQrgen

02/28/2024, 10:43 AM
And to monitor Garbage Collector performance, where exactly should I set this?
-Xruntime-logs=gc=info
... found where to set the flag
val iosX64def = iosX64 { compilations.getByName("main") { compilerOptions.options.freeCompilerArgs.add("-verbose") compilerOptions.options.freeCompilerArgs.add("-opt-in=kotlin.experimental.ExperimentalNativeApi") //binaries.libnexaBinCfg() compilerOptions.options.freeCompilerArgs.add("-Xruntime-logs=gc=info") } } val iosArm64def = iosArm64 { compilations.getByName("main") { compilerOptions.options.freeCompilerArgs.add("-verbose") compilerOptions.options.freeCompilerArgs.add("-opt-in=kotlin.experimental.ExperimentalNativeApi") //binaries.libnexaBinCfg() compilerOptions.options.freeCompilerArgs.add("-Xruntime-logs=gc=info") } } /* commented out because in libnexalight.def doesn't know how to point to the .a file */ val iosSimArm64def = iosSimulatorArm64 { compilations.getByName("main") { compilerOptions.options.freeCompilerArgs.add("-verbose") compilerOptions.options.freeCompilerArgs.add("-opt-in=kotlin.experimental.ExperimentalNativeApi") //binaries.libnexaBinCfg() compilerOptions.options.freeCompilerArgs.add("-Xruntime-logs=gc=info") } }
2 Views