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-02-09 01:41:09 +03:00
|
|
|
import: cabal/dev-sh-optimized.project.local
|
|
|
|
|
|
|
|
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
|