Skip to content

Commit 1771293

Browse files
committed
Filter print data in android target
1 parent a26880a commit 1771293

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugin/main/src/kotlinx/benchmark/gradle/AndroidMultiplatformTasks.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ fun Project.createAndroidBenchmarkExecTask(target: KotlinJvmAndroidCompilation,
7272
.redirectError(ProcessBuilder.Redirect.PIPE)
7373
.start()
7474

75-
val outputGobbler = StreamGobbler(process.inputStream) { println(it) }
75+
val outputGobbler = StreamGobbler(process.inputStream) { line ->
76+
if (line.contains("Iteration") || line.contains("run finished")) {
77+
println(line)
78+
}
79+
}
80+
7681
val errorGobbler = StreamGobbler(process.errorStream) { System.err.println(it) }
7782

7883
outputGobbler.start()

0 commit comments

Comments
 (0)