chore(build): add profiling options

This commit is contained in:
Steffen Jost 2023-04-19 15:57:02 +00:00
parent c7f8663f71
commit dfd0f57f90
3 changed files with 7 additions and 4 deletions

View File

@ -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."

View File

@ -257,7 +257,7 @@ ghc-options:
- -j
- -freduction-depth=0
- -prof
- -fprof-auto
- -fprof-auto-call
when:
- condition: flag(pedantic)
ghc-options:

View File

@ -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: []