2023-06-06 16:27:46 +03:00
|
|
|
-- Enable lower distortion time profiling, powers `dev.sh graphql-engine --prof-time`
|
|
|
|
-- See: https://downloads.haskell.org/ghc/latest/docs/users_guide/profiling.html?highlight=fprof%20late#ghc-flag--fprof-late
|
2023-07-12 11:28:42 +03:00
|
|
|
|
|
|
|
-- Formerly we had:
|
|
|
|
-- import: cabal/dev-sh-optimized.project.local
|
|
|
|
-- ...but cabal 3.10 broke it. See: TODO
|
|
|
|
-- ...so now we need to copy-paste that configuration here to avoid import chains
|
|
|
|
-- -------------------------- START dev-sh-optimized.project.local ------------------------------------
|
|
|
|
import: dev-sh.project.local
|
|
|
|
|
|
|
|
---- (reminder: top-level means apply these to all local packages)
|
|
|
|
flags: +optimize-hasura
|
|
|
|
-- be faster:
|
|
|
|
documentation: false
|
|
|
|
|
|
|
|
-- coverage inhibits performance. NOTE: we can't just put this at the top level
|
|
|
|
-- to override, since it seems package-specific configuration takes precedence...
|
|
|
|
package graphql-engine
|
|
|
|
coverage: false
|
|
|
|
package graphql-engine-pro
|
|
|
|
coverage: false
|
|
|
|
-- -------------------------- END dev-sh-optimized.project.local ------------------------------------
|
2023-02-09 01:41:09 +03:00
|
|
|
|
|
|
|
profiling: True
|
|
|
|
flags: +profiling
|
|
|
|
|
|
|
|
package *
|
|
|
|
profiling-detail: none
|
|
|
|
-- For each module, STG will be dumped to:
|
|
|
|
-- dist-newstyle/**/*.dump-stg-final
|
|
|
|
ghc-options: -ddump-stg-final -ddump-to-file
|
2023-06-06 16:27:46 +03:00
|
|
|
|
|
|
|
-- Apply late cost centers only to all local packages to minimize distortion:
|
|
|
|
program-options
|
|
|
|
ghc-options: -fprof-late
|