Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/5443ba94ce5d715741b9d7b5a696af8284e019e9

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

commit 5443ba94ce5d715741b9d7b5a696af8284e019e9
Author: Ian Lynagh <[email protected]>
Date:   Fri Aug 10 22:24:29 2012 +0100

    Make startProfTimer and stopProfTimer available via GHC.Profiling
    
    This allows the programmer to profile only part of a program's runtime,
    for example, ignoring startup and shutdown phases of programs.

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

 GHC/Profiling.hs |    5 +++++
 base.cabal       |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/GHC/Profiling.hs b/GHC/Profiling.hs
new file mode 100644
index 0000000..23ef4ce
--- /dev/null
+++ b/GHC/Profiling.hs
@@ -0,0 +1,5 @@
+
+module GHC.Profiling where
+
+foreign import ccall startProfTimer :: IO ()
+foreign import ccall stopProfTimer :: IO ()
diff --git a/base.cabal b/base.cabal
index b564de4..36b8708 100644
--- a/base.cabal
+++ b/base.cabal
@@ -92,6 +92,7 @@ Library {
             GHC.Num,
             GHC.PArr,
             GHC.Pack,
+            GHC.Profiling,
             GHC.Ptr,
             GHC.Read,
             GHC.Real,



_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to