summaryrefslogtreecommitdiff
path: root/compiler/GHC/Types/ProfAuto.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Types/ProfAuto.hs')
-rw-r--r--compiler/GHC/Types/ProfAuto.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/compiler/GHC/Types/ProfAuto.hs b/compiler/GHC/Types/ProfAuto.hs
new file mode 100644
index 0000000000..99521b5ccf
--- /dev/null
+++ b/compiler/GHC/Types/ProfAuto.hs
@@ -0,0 +1,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)