Go to file
Eelco Dolstra e82767910c Add some basic profiling support to the evaluator
Setting the environment variable NIX_COUNT_CALLS to 1 enables some
basic profiling in the evaluator.  It will count calls to functions
and primops as well as evaluations of attributes.

For example, to see where evaluation of a NixOS configuration spends
its time:

$ NIX_SHOW_STATS=1 NIX_COUNT_CALLS=1 ./src/nix-instantiate/nix-instantiate '<nixos>' -A system --readonly-mode
...
calls to 39 primops:
    239532 head
    233962 tail
    191252 hasAttr
...
calls to 1595 functions:
    224157 `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:17:19'
    221767 `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:17:14'
    221767 `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:17:10'
...
evaluations of 7088 attributes:
    167377 undefined position
    132459 `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/attrsets.nix:119:41'
     47322 `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/attrsets.nix:13:21'
...
2012-08-12 23:29:28 -04:00
corepkgs import: If the path is a valid .drv file, parse it and generate a derivation attrset. 2012-07-25 09:30:17 -04:00
doc Manual: Remove reference to non-existent -I option 2012-07-30 22:29:42 -04:00
misc
perl Add function queryPathFromHashPart() 2012-07-17 18:55:39 -04:00
scripts nix-profile.sh: Don't set NIX_REMOTE on single user installations 2012-07-25 17:06:09 -04:00
src Add some basic profiling support to the evaluator 2012-08-12 23:29:28 -04:00
tests Add a test for Nix store optimisation 2012-07-23 17:40:23 -04:00
.gitignore Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
AUTHORS
bootstrap.sh
build.nix
configure.ac Handle platforms that don't support linking to a symlink 2012-07-23 18:42:18 -04:00
COPYING
INSTALL
Makefile.am
nix.spec.in Really fix RPM builds 2012-07-09 13:16:09 -04:00
README
release.nix Turn tests back on 2012-07-25 09:30:17 -04:00
substitute.mk Support building with the Perl XS bindings disabled 2012-05-10 19:03:23 -04:00
version Bump version 2012-07-18 17:17:23 -04:00

Nix is a purely functional package manager.  For installation and
usage instructions, please read the manual, which can be found in
`docs/manual/manual.html', and additionally at the Nix website at
<http://nixos.org/>.


Acknowledgments

This product includes software developed by the OpenSSL Project for
use in the OpenSSL Toolkit (http://www.OpenSSL.org/).