Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created September 1, 2018 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/679c67d4c893648dbefe7eea2ebd88f4 to your computer and use it in GitHub Desktop.
Save grahamc/679c67d4c893648dbefe7eea2ebd88f4 to your computer and use it in GitHub Desktop.
[nix-shell:~/projects/nix]$ NIX_SHOW_STATS=1 ./inst/bin/nix-build ../test.nix
evaluation statistics:
time elapsed: 0.066001
size of a value: 24
size of an attr: 24
environments allocated count: 4811
environments allocated bytes: 135936
list elements count: 3770
list elements bytes: 30160
list concatenations: 17
values allocated count: 26698
values allocated bytes: 640752
sets allocated: 2035 (2094920 bytes)
right-biased unions: 251
values copied in right-biased unions: 63015
symbols in symbol table: 12782
size of symbol table: 156798
number of thunks: 23296
number of thunks avoided: 6495
number of attr lookups: 906
number of primop calls: 2480
number of function calls: 4284
total allocations: 2901768 bytes
current Boehm heap size: 402718720 bytes
total Boehm heap allocations: 3186896 bytes
error: illegal name: '.drv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment