-
-
Notifications
You must be signed in to change notification settings - Fork 416
Expand file tree
/
Copy pathstack-prof.yaml
More file actions
20 lines (20 loc) · 894 Bytes
/
Copy pathstack-prof.yaml
File metadata and controls
20 lines (20 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Stack config for profiling builds. Use it with its own work dir, so normal builds aren't disturbed:
# stack --stack-yaml stack-prof.yaml --work-dir .stack-prof install --library-profiling --executable-profiling --local-bin-path bin hledger
# mv bin/hledger bin/hledgerprof
# bin/hledgerprof CMD +RTS -p # writes hledgerprof.prof; see doc/PERFORMANCE.md
# GHC 9.14.1 panics compiling tls-2.4.3 with profiling, so tls is built unoptimised;
# cost centres (-fprof-auto) are added only to hledger-lib and hledger.
# Keep resolver/compiler in sync with stack.yaml.
packages:
- hledger-lib
- hledger
compiler: ghc-9.14
resolver: nightly-2026-09-01
extra-deps:
# megaparsec 9.8.3 parses about 10% faster than earlier versions (megaparsec#612)
- megaparsec-9.8.3
- tls-2.4.3
ghc-options:
tls: -O0
hledger-lib: -rtsopts -fprof-auto -fprof-cafs
hledger: -rtsopts -fprof-auto -fprof-cafs