chore: setup for profiling
This commit is contained in:
parent
1d3fd8c8a7
commit
13b6fe1db5
@ -247,8 +247,6 @@ when:
|
|||||||
- -ddump-splices
|
- -ddump-splices
|
||||||
- -ddump-to-file
|
- -ddump-to-file
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
ghc-prof-options:
|
|
||||||
- -fprof-auto
|
|
||||||
else:
|
else:
|
||||||
ghc-options:
|
ghc-options:
|
||||||
- -O -fllvm
|
- -O -fllvm
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{-# LANGUAGE UndecidableInstances #-}
|
{-# LANGUAGE UndecidableInstances #-}
|
||||||
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
|
{-# OPTIONS_GHC -fno-warn-redundant-constraints -fprof-auto #-}
|
||||||
|
|
||||||
module Foundation.Authorization
|
module Foundation.Authorization
|
||||||
( evalAccess, evalAccessFor, evalAccessWith
|
( evalAccess, evalAccessFor, evalAccessWith
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{-# LANGUAGE UndecidableInstances #-} -- for `MemcachedKeyFavourites`
|
{-# LANGUAGE UndecidableInstances #-} -- for `MemcachedKeyFavourites`
|
||||||
|
{-# OPTIONS_GHC -fprof-auto #-}
|
||||||
|
|
||||||
module Foundation.SiteLayout
|
module Foundation.SiteLayout
|
||||||
( siteLayout', siteLayout
|
( siteLayout', siteLayout
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{-# OPTIONS_GHC -O0 -fasm #-}
|
{-# OPTIONS_GHC -O0 -fasm -fprof-auto #-}
|
||||||
|
|
||||||
module Foundation.Yesod.Middleware
|
module Foundation.Yesod.Middleware
|
||||||
( yesodMiddleware
|
( yesodMiddleware
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
{-# OPTIONS_GHC -fprof-auto #-}
|
||||||
|
|
||||||
module Jobs
|
module Jobs
|
||||||
( module Types
|
( module Types
|
||||||
, module Jobs.Queue
|
, module Jobs.Queue
|
||||||
|
|||||||
@ -25,6 +25,7 @@ fromPersistValueJSON = \case
|
|||||||
PersistText text -> decodeBS $ Text.encodeUtf8 text
|
PersistText text -> decodeBS $ Text.encodeUtf8 text
|
||||||
_other -> Left "JSON values must be converted from PersistDbSpecific, PersistText, or PersistByteString"
|
_other -> Left "JSON values must be converted from PersistDbSpecific, PersistText, or PersistByteString"
|
||||||
where decodeBS = first pack . JSON.eitherDecodeStrict'
|
where decodeBS = first pack . JSON.eitherDecodeStrict'
|
||||||
|
{-# SCC fromPersistValueJSON #-}
|
||||||
|
|
||||||
sqlTypeJSON :: SqlType
|
sqlTypeJSON :: SqlType
|
||||||
sqlTypeJSON = SqlOther "jsonb"
|
sqlTypeJSON = SqlOther "jsonb"
|
||||||
|
|||||||
@ -2,6 +2,10 @@ flags:
|
|||||||
aeson:
|
aeson:
|
||||||
cffi: true
|
cffi: true
|
||||||
|
|
||||||
|
rebuild-ghc-options: true
|
||||||
|
ghc-options:
|
||||||
|
"$everything": -fno-prof-auto
|
||||||
|
|
||||||
nix:
|
nix:
|
||||||
packages: []
|
packages: []
|
||||||
pure: false
|
pure: false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user