summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2023-03-24 19:30:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-28 22:27:15 +0100
commitb9a0ceebe9aa1e79d97508e7ab2fc39ca7c6637f (patch)
tree2cc0b3f965a9627622d1e79171606d4196f3eeb5
parentca4b4165f388a8b8bb80c120a2baef00e7e3bcac (diff)
downloadopenembedded-core-b9a0ceebe9aa1e79d97508e7ab2fc39ca7c6637f.tar.gz
buildstats-summary: add an option to disable bold
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rwxr-xr-xscripts/buildstats-summary4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/buildstats-summary b/scripts/buildstats-summary
index 89348318af..f521d78650 100755
--- a/scripts/buildstats-summary
+++ b/scripts/buildstats-summary
@@ -75,7 +75,7 @@ def dump_buildstats(args, bs: buildstats.BuildStats):
for t in tasks:
if t.duration >= minimum:
line = f"{t.duration} {t.recipe}:{t.task}"
- if t.duration >= highlight:
+ if args.highlight and t.duration >= highlight:
print(f"\033[1m{line}\033[0m")
else:
print(line)
@@ -111,7 +111,7 @@ def main(argv=None) -> int:
type=int,
default=60,
metavar="SECS",
- help="Highlight tasks longer than SECS seconds",
+ help="Highlight tasks longer than SECS seconds (0 disabled)",
)
args = parser.parse_args(argv)