summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2017-01-28 14:59:30 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2017-01-28 15:02:12 +0300
commitde78ee6fb77e7505160ab23e6e1b4e66dc87f698 (patch)
tree879f710361934e1d3132d423f7001673765348e5
parent1f366b8d15feaa05931bd2d81d8b0c5bae92f3b8 (diff)
downloadhaskell-de78ee6fb77e7505160ab23e6e1b4e66dc87f698.tar.gz
Document GHC.Profiling functions [ci skip]
-rw-r--r--libraries/base/GHC/Profiling.hs11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/base/GHC/Profiling.hs b/libraries/base/GHC/Profiling.hs
index 732917684d..917a208b30 100644
--- a/libraries/base/GHC/Profiling.hs
+++ b/libraries/base/GHC/Profiling.hs
@@ -6,5 +6,14 @@ module GHC.Profiling where
import GHC.Base
-foreign import ccall startProfTimer :: IO ()
+-- | Stop attributing ticks to cost centres. Allocations will still be
+-- attributed.
+--
+-- @since 4.7.0.0
foreign import ccall stopProfTimer :: IO ()
+
+-- | Start attributing ticks to cost centres. This is called by the RTS on
+-- startup.
+--
+-- @since 4.7.0.0
+foreign import ccall startProfTimer :: IO ()