How to profile/debug slow nix-instantiate times

There’s NIX_SHOW_STATS=1 and NIX_COUNT_CALLS=1.

For generating flame graphs see nix.conf - Nix Reference Manual

2 Likes