summaryrefslogtreecommitdiff
path: root/compiler/GHC/Types/ProfAuto.hs
blob: 99521b5ccf26ed83d8b72e5c47f83d605d544eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module GHC.Types.ProfAuto
  ( ProfAuto (..)
  )
where

import GHC.Prelude

-- | What kind of {-# SCC #-} to add automatically
data ProfAuto
  = NoProfAuto         -- ^ no SCC annotations added
  | ProfAutoAll        -- ^ top-level and nested functions are annotated
  | ProfAutoTop        -- ^ top-level functions annotated only
  | ProfAutoExports    -- ^ exported functions annotated only
  | ProfAutoCalls      -- ^ annotate call-sites
  deriving (Eq,Enum)