mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Prettyfied --profiling output
This commit is contained in:
parent
b02ba388da
commit
e96a3a52e4
1 changed files with 2 additions and 3 deletions
|
@ -215,10 +215,9 @@ private class Main @Inject constructor(
|
||||||
|
|
||||||
// Display timings if requested
|
// Display timings if requested
|
||||||
if (args.profiling) {
|
if (args.profiling) {
|
||||||
log(1, "\nTIMINGS (SECONDS)")
|
log(1, "\n" + AsciiArt.horizontalSingleLine + " Timings (in seconds)")
|
||||||
log(1, "=================\n")
|
|
||||||
runTargetResult.timings.sortedByDescending { it.durationMillis }.forEach {
|
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)
|
+ " " + it.taskName)
|
||||||
}
|
}
|
||||||
log(1, "\n")
|
log(1, "\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue