Nixprof: a Nix build graph profiler

After asking in vain for an existing tool to check where time is spent in a complex build graph and how to optimize it, I’m happy to announce my own analysis tool for this use case:

As shown in the readme, once you’ve recorded a build using Nixprof, you can generate various textual analyses as well as nice graphs to look at in external programs or to hang on your office wall.

Ideas for further analyses and, even better, contributions welcome!


Instead of introducing a tiny change to the source, you should also be able to pass the —rebuild flag to nix build

1 Like

That will only rebuild the listed installables I believe (a bit of a hassle with a complex graph), and probably not in dependency order, so the Chrome trace output would not be as useful.