mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Prettyfied --profiling output
This commit is contained in:
parent
c2aa0b45cb
commit
996bad980c
1 changed files with 3 additions and 3 deletions
|
@ -214,10 +214,10 @@ private class Main @Inject constructor(
|
|||
plugins.shutdownPlugins()
|
||||
|
||||
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("%.2f", it.durationMillis.toDouble() / 1000) + " " + it.taskName)
|
||||
log(1, String.format("%1$10.2f", it.durationMillis.toDouble() / 1000)
|
||||
+ " " + it.taskName)
|
||||
}
|
||||
log(1, "\n")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue