[K/N][perf] Fix compile task name for debug binaries

This commit is contained in:
Elena Lepilkina
2022-04-06 08:32:46 +03:00
committed by Pavel Punegov
parent f401573e5c
commit 655ed0f7c8
@@ -217,8 +217,11 @@ abstract class BenchmarkingPlugin: Plugin<Project> {
doLast {
val applicationName = benchmark.applicationName
val benchContents = buildDir.resolve(nativeBenchResults).readText()
val nativeCompileTime = if (benchmark.compileTasks.isEmpty()) getNativeCompileTime(project, applicationName)
else getNativeCompileTime(project, applicationName, benchmark.compileTasks)
val nativeCompileTasks = if (benchmark.compileTasks.isEmpty()) {
listOf("linkBenchmark${benchmark.buildType.name.lowercase().replaceFirstChar { it.uppercase() }}ExecutableNative")
} else benchmark.compileTasks
val nativeCompileTime = getNativeCompileTime(project, applicationName, nativeCompileTasks)
val properties = commonBenchmarkProperties + mapOf(
"type" to "native",