diff --git a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/Stats.kt b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/Stats.kt index 3b9d31ff5ad..950cea0ee04 100644 --- a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/Stats.kt +++ b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/Stats.kt @@ -59,7 +59,7 @@ class Stats( )) { val n = "$id : ${v.first}" - TeamCity.test(n, durationMs = v.third) { + TeamCity.test(n, durationMs = v.third, includeStats = false) { TeamCity.statValue("$id${v.second}", v.third) } } @@ -78,7 +78,7 @@ class Stats( val shortName = if (perfCounterName.endsWith(": time")) n.removeSuffix(": time") else null shortName?.let { - TeamCity.test(it, durationMs = mean) { + TeamCity.test(it, durationMs = mean, includeStats = false) { TeamCity.statValue(it, mean) } } diff --git a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/util/logging.kt b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/util/logging.kt index 73140bb5b56..b186a0acdc7 100644 --- a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/util/logging.kt +++ b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/util/logging.kt @@ -39,15 +39,15 @@ object TeamCity { } fun test(name: String, durationMs: Long? = null, errors: List, block: () -> Unit) { - test(name, durationMs, if (errors.isNotEmpty()) toDetails(errors) else null, block) + test(name, durationMs, errorDetails = if (errors.isNotEmpty()) toDetails(errors) else null, block = block) } - fun test(name: String, durationMs: Long? = null, errorDetails: String? = null, block: () -> Unit) { + fun test(name: String, durationMs: Long? = null, includeStats: Boolean = true, errorDetails: String? = null, block: () -> Unit) { testStarted(name) try { block() } finally { - statValue(name, durationMs ?: -1) + if (includeStats) statValue(name, durationMs ?: -1) if (errorDetails != null) { testFailed(name, errorDetails) } else {