[commit: ghc] master: Document GHC.Profiling functions [ci skip] (de78ee6)

git at git.haskell.org git at git.haskell.org
Sat Jan 28 12:02:51 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/de78ee6fb77e7505160ab23e6e1b4e66dc87f698/ghc

>---------------------------------------------------------------

commit de78ee6fb77e7505160ab23e6e1b4e66dc87f698
Author: Ömer Sinan Ağacan <omeragacan at gmail.com>
Date:   Sat Jan 28 14:59:30 2017 +0300

    Document GHC.Profiling functions [ci skip]


>---------------------------------------------------------------

de78ee6fb77e7505160ab23e6e1b4e66dc87f698
 libraries/base/GHC/Profiling.hs | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/libraries/base/GHC/Profiling.hs b/libraries/base/GHC/Profiling.hs
index 7329176..917a208 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 ()



More information about the ghc-commits mailing list