[commit: base] master: Make startProfTimer and stopProfTimer available via GHC.Profiling (5443ba9)
Ian Lynagh
igloo at earth.li
Tue Aug 14 01:15:50 CEST 2012
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 <ian at well-typed.com>
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,
More information about the Cvs-libraries
mailing list