tools: make ghci-prof starts GHCI in profiling mode, can use traceStack
This commit is contained in:
parent
2db81d0d13
commit
13c4643a09
5
Makefile
5
Makefile
@ -805,6 +805,11 @@ ghci: \
|
|||||||
# $(call def-help,ghci, start a GHCI REPL and load the hledger-lib and hledger packages)
|
# $(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
|
$(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: \
|
ghci-dev: \
|
||||||
# $(call def-help,ghci, start a GHCI REPL and load the dev.hs script plus hledger-lib and hledger)
|
# $(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
|
$(STACK) exec -- $(GHCI) $(BUILDFLAGS) -fno-warn-unused-imports -fno-warn-unused-binds dev.hs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user