Merge remote branch 'origin/master' into ghc-new-co
[ghc.git] / rules / prof.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2010 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13 define profStart
14 $$(if $(PROF),$$(info $$(shell date +%s.%N): Start $1))
15 endef
16
17 define profEnd
18 $$(if $(PROF),$$(info $$(shell date +%s.%N): End $1))
19 endef
20