Date: Fri, 30 May 2025 16:13:40 +0200 From: Wolfram Schneider <wosch@freebsd.org> To: freebsd-current <freebsd-current@freebsd.org> Subject: fine granular buildworld time statistic by stages and subdirs Message-ID: <CAMWY7CDKzvtWkwe76ksV7Epvsjgn1ceVziny3XY0JXQDczcRXA@mail.gmail.com>
index | next in thread | raw e-mail
For the `make buildworld' we log the time spent in each stage (bootstrap tools, building libraries, everything etc), as documented in https://www.freebsd.org/status/report-2021-07-2021-09/#_current_compilation_time_analysis It would be great if we have more fine granular statistics based on the subdir targets. It turns out that is pretty easy with a wrapper shell script. apply the patch from https://reviews.freebsd.org/D50534 $ chmod 755 ./tools/build/time-buildworld* build the world $ make buildworld > buildworld.log The generated CSV has ca. 2800 lines $ ./tools/build/time-buildworld-csv.awk buildworld.log > buildworld.csv output example: https://people.freebsd.org/~wosch/build-time/buildworld/buildworld.csv https://people.freebsd.org/~wosch/build-time/buildworld/buildworld.log.gz The statistics will be generated as CSV, because this is a very simple format and runs on a base system without ports installed. Comments are welcome, Wolfram -- Wolfram Schneider <wosch@FreeBSD.org> https://wolfram.schneider.orghelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMWY7CDKzvtWkwe76ksV7Epvsjgn1ceVziny3XY0JXQDczcRXA>
