]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
buildstats-summary: add an option to disable bold
authorJose Quaresma <quaresma.jose@gmail.com>
Fri, 24 Mar 2023 19:30:31 +0000 (19:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Mar 2023 21:27:15 +0000 (22:27 +0100)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
scripts/buildstats-summary

index 89348318afa06971e0809cdf505c6b25b86c2e76..f521d78650b4f5cda4410088eb2c874a7b27f6e0 100755 (executable)
@@ -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)