graphql-engine/cabal/dev-sh-prof-ticky.project.local
kodiakhq[bot] b01d3a45de server: dev build modes
Add some configurations for modern profiling modes, and integration into dev.sh

These require cabal 3.8 due to the use of `import`

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7671
GitOrigin-RevId: f793f64105cfd99fb51b247fa8bc050f6d4bd23e
2023-02-08 22:43:00 +00:00

12 lines
412 B
Plaintext

-- Enable ticky profiling, powers `dev.sh graphql-engine --prof-ticky`
-- https://ghc.gitlab.haskell.org/ghc/doc/users_guide/profiling.html#using-ticky-ticky-profiling-for-implementors
--
-- run with e.g. `+RTS -r outfilepath`
import: cabal/dev-sh-optimized.project.local
program-options
ghc-options: -ticky
-- TODO doesn't seem to work with -ticky??:
ghc-options: -ddump-stg-final -ddump-to-file