diff --git a/build.sh b/build.sh index cf93767e7..0fe066222 100755 --- a/build.sh +++ b/build.sh @@ -9,5 +9,5 @@ set -e [ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en .stack-work.lock "$0" "$@" || : echo "Building..." -stack build --fast --flag uniworx:-library-only --flag uniworx:dev $@ +stack build --fast --profile --library-profiling --executable-profiling --flag uniworx:-library-only --flag uniworx:dev $@ echo "Done." diff --git a/package.yaml b/package.yaml index 3b250dd6b..93685ee45 100644 --- a/package.yaml +++ b/package.yaml @@ -257,7 +257,7 @@ ghc-options: - -j - -freduction-depth=0 - -prof - - -fprof-auto + - -fprof-auto-call when: - condition: flag(pedantic) ghc-options: diff --git a/stack.yaml b/stack.yaml index 54e068450..e3b41af26 100644 --- a/stack.yaml +++ b/stack.yaml @@ -7,8 +7,11 @@ flags: cffi: true rebuild-ghc-options: true -ghc-options: - "$everything": -fno-prof-auto +#ghc-options: +# "$everything": -fno-prof-auto + +library-profiling: true +executable-profiling: true nix: packages: []