1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Merge pull request #293 from ethauvin/master

Prettyfied --profiling output
This commit is contained in:
Cedric Beust 2016-07-25 13:34:18 -07:00 committed by GitHub
commit 029f51f6fb

View file

@ -215,10 +215,9 @@ private class Main @Inject constructor(
// Display timings if requested
if (args.profiling) {
log(1, "\nTIMINGS (SECONDS)")
log(1, "=================\n")
log(1, "\n" + AsciiArt.horizontalSingleLine + " Timings (in seconds)")
runTargetResult.timings.sortedByDescending { it.durationMillis }.forEach {
log(1, String.format("%-6.2f", it.durationMillis.toDouble() / 1000)
log(1, String.format("%1$10.2f", it.durationMillis.toDouble() / 1000)
+ " " + it.taskName)
}
log(1, "\n")