summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24 02:22:24 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24 02:22:24 +0200
commit6da92d96aec29ab09cf909ac6a270bc2753cd34a (patch)
tree98c058ff7c979a08369ff86700c638c719e56d45
parent543d8a5942f503f5e49eecbf7e4e7a039472e9ea (diff)
downloadguix-6da92d96aec29ab09cf909ac6a270bc2753cd34a.tar.gz
Document NIX_SHOW_STATS and NIX_COUNT_CALLS
-rw-r--r--doc/manual/env-common.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/manual/env-common.xml b/doc/manual/env-common.xml
index e6a3589318..9e97e58f57 100644
--- a/doc/manual/env-common.xml
+++ b/doc/manual/env-common.xml
@@ -312,6 +312,24 @@ $ mount -o bind /mnt/otherdisk/nix /nix</screen>
 </varlistentry>
 
 
+<varlistentry><term><envar>NIX_SHOW_STATS</envar></term>
+
+  <listitem><para>If set to <literal>1</literal>, Nix will print some
+  evaluation statistics, such as the number of values
+  allocated.</para></listitem>
+
+</varlistentry>
+
+
+<varlistentry><term><envar>NIX_COUNT_CALLS</envar></term>
+
+  <listitem><para>If set to <literal>1</literal>, Nix will print how
+  often functions were called during Nix expression evaluation.  This
+  is useful for profiling your Nix expressions.</para></listitem>
+
+</varlistentry>
+
+
 <varlistentry><term><envar>GC_INITIAL_HEAP_SIZE</envar></term>
 
   <listitem><para>If Nix has been configured to use the Boehm garbage