tools: make ghci-prof starts GHCI in profiling mode, can use traceStack

This commit is contained in:
Simon Michael 2017-05-30 13:03:52 -07:00
parent 2db81d0d13
commit 13c4643a09

View File

@ -805,6 +805,11 @@ ghci: \
# $(call def-help,ghci, start a GHCI REPL and load the hledger-lib and hledger packages)
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) hledger/Hledger/Cli/Main.hs
ghci-prof: \
# $(call def-help,ghci, start a GHCI REPL and load the hledger-lib and hledger packages, with profiling information)
stack build --profile hledger --only-dependencies
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) -fexternal-interpreter -prof -fprof-auto hledger/Hledger/Cli/Main.hs
ghci-dev: \
# $(call def-help,ghci, start a GHCI REPL and load the dev.hs script plus hledger-lib and hledger)
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) -fno-warn-unused-imports -fno-warn-unused-binds dev.hs