tools: rename dev-profile, add dev-heap rule

This commit is contained in:
Simon Michael 2015-10-13 10:31:43 -07:00
parent 56a79c479f
commit b3f5b7e7ca

View File

@ -374,12 +374,18 @@ devprof: dev.hs $(SOURCEFILES) \
$(call def-help,devprof, build the dev.hs script with profiling support )
stack ghc -- $(CABALMACROSFLAGS) -ihledger-lib dev.hs -rtsopts -prof -fprof-auto -osuf p_o -o devprof
profile-dev: devprof \
$(call def-help,devprof, profile the dev.hs script )
dev-profile: devprof \
$(call def-help,dev-profile, get a time & space profile of the dev.hs script )
time ./devprof +RTS -P \
&& cp devprof.prof devprof.prof.$(TIME) \
&& profiteur devprof.prof
dev-heap: devprof \
$(call def-help,dev-heap, get a heap profile of the dev.hs script )
time ./devprof +RTS -hc \
&& cp devprof.hp devprof.hp.$(TIME) \
&& hp2ps devprof.hp.$(TIME)
# # build other executables quickly
# bin/hledger-webdev: link-web-dirs \