diff options
author | Ian Lynagh <igloo@earth.li> | 2011-01-23 15:14:08 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-01-23 15:14:08 +0000 |
commit | eb3a1aecac72d22c618b4050fb88eac9055b527a (patch) | |
tree | b86df2bf98b480a27d41ae0a1938243c673c0225 /rules/prof.mk | |
parent | dd47428295d89eb6bbf91316ac4f5a6e98b1ec70 (diff) | |
download | haskell-eb3a1aecac72d22c618b4050fb88eac9055b527a.tar.gz |
Add build system profiling to build system
Diffstat (limited to 'rules/prof.mk')
-rw-r--r-- | rules/prof.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/rules/prof.mk b/rules/prof.mk new file mode 100644 index 0000000000..c80a7c5312 --- /dev/null +++ b/rules/prof.mk @@ -0,0 +1,20 @@ +# ----------------------------------------------------------------------------- +# +# (c) 2010 The University of Glasgow +# +# This file is part of the GHC build system. +# +# To understand how the build system works and how to modify it, see +# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture +# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying +# +# ----------------------------------------------------------------------------- + +define profStart +$$(if $(PROF),$$(info $$(shell date +%s.%N): Start $1)) +endef + +define profEnd +$$(if $(PROF),$$(info $$(shell date +%s.%N): End $1)) +endef + |