forked from lix-project/lix
We realized that there's really no good place to put these dev facing
bulletins, and the user-facing release notes aren't really the worst
place to put them, I guess, and we do kind of hope that it converts
users to devs.
Change-Id: Id9387b2964fe291cb5a3f74ad6344157f19b540c
762 B
762 B
synopsis | cls | category |
---|---|---|
Clang build timing analysis | 587 | Development |
We now have Clang build profiling available, which generates Chrome
tracing files for each compilation unit. To enable it, run meson configure build -Dprofile-build=enabled
in a Clang stdenv (nix develop .#native-clangStdenvPackages
) then rerun the compilation.
If you want to make the build go faster, do a clang build with meson, then run
maintainers/buildtime_report.sh build
, then contemplate how to improve the
build time.
You can also look at individual object files' traces in https://ui.perfetto.dev.
See the wiki page for more details on how to do this.