I use stack version 1.1.2 on Win7 64 bits and want to profile my program. I did:
stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" <- no errors
and then run: stack exec -- renameUnit-exe +RTS -p -RTS <- the program runs, but no profiling info and no *.prof file.
I tried stack exec --renameUnit-exe +RTS -p -RTS <- I get the error: the -p flag - requires the program to be build with -prof
What am I doing wrong?
Kees