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:28:45 +0100
commit13d4b2a4552cb4f2c95e5793592ec4ba810702c8 (patch)
tree54ae8db8d499d4af823a68d28460ac4bb52df51c
parente3afe166940686b05626c3298bc4369296b7d8a3 (diff)
downloadpoky-13d4b2a4552cb4f2c95e5793592ec4ba810702c8.tar.gz
buildstats-summary: add an option to disable bold
(From OE-Core rev: b9a0ceebe9aa1e79d97508e7ab2fc39ca7c6637f) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
75 for t in tasks: 75 for t in tasks:
76 if t.duration >= minimum: 76 if t.duration >= minimum:
77 line = f"{t.duration} {t.recipe}:{t.task}" 77 line = f"{t.duration} {t.recipe}:{t.task}"
78 if t.duration >= highlight: 78 if args.highlight and t.duration >= highlight:
79 print(f"\033[1m{line}\033[0m") 79 print(f"\033[1m{line}\033[0m")
80 else: 80 else:
81 print(line) 81 print(line)
@@ -111,7 +111,7 @@ def main(argv=None) -> int:
111 type=int, 111 type=int,
112 default=60, 112 default=60,
113 metavar="SECS", 113 metavar="SECS",
114 help="Highlight tasks longer than SECS seconds", 114 help="Highlight tasks longer than SECS seconds (0 disabled)",
115 ) 115 )
116 116
117 args = parser.parse_args(argv) 117 args = parser.parse_args(argv)