Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 670 Bytes

File metadata and controls

21 lines (14 loc) · 670 Bytes

To profile performance, try this:

nix run github:crabdancing/nix-flamegraph -- -t ".#nixosConfigurations.cwilliams-laptop.config.system.build.toplevel.outPath" -o eval-flamegraph.svg

Or try evaluating just home-manager:

nix eval .#nixosConfigurations.cwilliams-laptop.config.home-manager.users.cwilliams.home.activationPackage.outPath --eval-profiler flamegraph

Then open it in the browser.

Performance stats

NIX_SHOW_STATS_PATH=stats.json nix eval .#nixosConfigurations.cwilliams-laptop.config.system.build.toplevel --option eval-cache false

Go to https://notashelf.github.io/nix-evaluator-stats/ and open the file to review