From 13c4643a0992dc6e7ec21fb13fbaa856799643f1 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 30 May 2017 13:03:52 -0700 Subject: [PATCH] tools: make ghci-prof starts GHCI in profiling mode, can use traceStack --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 8ad3590a2..c403af65e 100644 --- a/Makefile +++ b/Makefile @@ -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