File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
nativeMain/src/kotlinx/benchmark/native Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ kotlin {
5555 languageSettings {
5656 progressiveMode = true
5757 optIn(' kotlin.experimental.ExperimentalNativeApi' )
58+ optIn(" kotlin.native.runtime.NativeRuntimeApi" )
5859 optIn(" kotlinx.cinterop.ExperimentalForeignApi" )
5960 }
6061 }
Original file line number Diff line number Diff line change 11package kotlinx.benchmark.native
22
33import kotlinx.benchmark.*
4- import kotlin.native.internal .GC
4+ import kotlin.native.runtime .GC
55import kotlin.time.*
66
77class NativeExecutor (
@@ -218,7 +218,6 @@ class NativeExecutor(
218218 return getStackTrace().joinToString(" \n " ) + " \n Cause: ${nested.message} \n " + nested.stacktrace()
219219 }
220220
221- @OptIn(ExperimentalTime ::class )
222221 private inline fun measure (
223222 cycles : Int ,
224223 nativeGCAfterIteration : Boolean ,
@@ -239,7 +238,6 @@ class NativeExecutor(
239238 return duration.toDouble(DurationUnit .NANOSECONDS ) / cycles
240239 }
241240
242- @OptIn(ExperimentalTime ::class )
243241 private inline fun <T > measureWarmup (
244242 name : String ,
245243 config : BenchmarkConfiguration ,
You can’t perform that action at this time.
0 commit comments