Author: ludo
Date: Fri Feb 25 15:28:11 2011
New Revision: 26115
URL: https://svn.nixos.org/websvn/nix/?rev=26115&sc=1
Log:
stdenv: Emit `phase-started' and `phase-succeeded' events.
These markers follow the format of those of `nix-store --print-build-trace',
which allows extraction of, say, phase durations in a similar way.
Modified:
nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh
Modified: nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh
==============================================================================
--- nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh Fri Feb
25 15:07:52 2011 (r26114)
+++ nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh Fri Feb
25 15:28:11 2011 (r26115)
@@ -814,6 +814,9 @@
if test "$curPhase" = fixupPhase -a -n "$dontFixup"; then continue; fi
if test "$curPhase" = distPhase -a -z "$doDist"; then continue; fi
+ echo
+ echo "@ phase-started $out $curPhase"
+
showPhaseHeader "$curPhase"
dumpVars
@@ -825,6 +828,9 @@
cd "${sourceRoot:-.}"
fi
+ echo
+ echo "@ phase-succeeded $out $curPhase"
+
stopNest
done
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits