-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Hpc-generated strobes for a running Haskell program -- -- A rudimentary library that demonstrates the possibility of using Hpc -- (Haskell Program Coverage) to inspect the state of a running Haskell -- program. Use of the library involves a simple change of the main -- function and also requires the program to be enabled for hpc. At the -- time of writing, this means using a fairly recent version of GHC and -- compiling the Haskell code with the -fhpc option. @package hpc-strobe @version 0.1 -- | A rudimentary library that demonstrates the possibility of using Hpc -- (Haskell Program Coverage) to inspect the state of a running Haskell -- program. Use of the library involves a simple change of the main -- function and also requires the program to be enabled for hpc. At the -- time of writing, this means using a fairly recent version of GHC and -- compiling the Haskell code with the -fhpc option. module Trace.Hpc.Strobe -- | Replace -- --
--   main = <your main function>
--   
-- -- by -- --
--   myMain = <your main function>
--   main = withStrobesWrittenRegularly
--            "<tixfile directory>"
--            "myMain"
--            1000000
--            myMain
--   
-- -- and strobes (separate Hpc tix files) will be written regularly, with 1 -- second (1000000 microseconds) between each writing of a strobe. The -- tix files will be deposited in the indicated tixfile directory and be -- named "myMain_<index>.tix" where the index is taken from [0..]. withStrobesWrittenRegularly :: FilePath -> String -> Int -> IO () -> IO ()