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 {
55
55
languageSettings {
56
56
progressiveMode = true
57
57
optIn(' kotlin.experimental.ExperimentalNativeApi' )
58
+ optIn(" kotlin.native.runtime.NativeRuntimeApi" )
58
59
optIn(" kotlinx.cinterop.ExperimentalForeignApi" )
59
60
}
60
61
}
Original file line number Diff line number Diff line change 1
1
package kotlinx.benchmark.native
2
2
3
3
import kotlinx.benchmark.*
4
- import kotlin.native.internal .GC
4
+ import kotlin.native.runtime .GC
5
5
import kotlin.time.*
6
6
7
7
class NativeExecutor (
@@ -218,7 +218,6 @@ class NativeExecutor(
218
218
return getStackTrace().joinToString(" \n " ) + " \n Cause: ${nested.message} \n " + nested.stacktrace()
219
219
}
220
220
221
- @OptIn(ExperimentalTime ::class )
222
221
private inline fun measure (
223
222
cycles : Int ,
224
223
nativeGCAfterIteration : Boolean ,
@@ -239,7 +238,6 @@ class NativeExecutor(
239
238
return duration.toDouble(DurationUnit .NANOSECONDS ) / cycles
240
239
}
241
240
242
- @OptIn(ExperimentalTime ::class )
243
241
private inline fun <T > measureWarmup (
244
242
name : String ,
245
243
config : BenchmarkConfiguration ,
You can’t perform that action at this time.
0 commit comments