graphql-engine/server/src-lib/GHC/Stats/Extended.hs
kodiakhq[bot] 1b378ae6e8 Add a new /dev/rts_stats endpoint, enabled when '+RTS -T'
GitOrigin-RevId: e347bc2f66bad814516662e34bbd8322c214be25
2021-04-13 17:33:38 +00:00

22 lines
614 B
Haskell

{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | A convenience wrapper around "GHC.Stats", which makes RTS stats available
-- (when the program is run with +RTS -T)
module GHC.Stats.Extended
( module GHC.Stats
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.TH as A
import GHC.Stats
$(A.deriveToJSON A.defaultOptions ''GCDetails)
$(A.deriveToJSON A.defaultOptions ''RTSStats)
{- for base >= 4.15
instance A.ToJSON S.GCDetails where
toEncoding = A.genericToEncoding A.defaultOptions
instance A.ToJSON S.RTSStats where
toEncoding = A.genericToEncoding A.defaultOptions
-}