X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=utils%2Fhpc%2FHpcMarkup.hs;h=a46fd799eb1c0f9d3e6fb55eda987b42e30bfa8b;hp=53eaf323e8e07340c90823d5cbe4affbc88acd93;hb=78a1b71ccc5a99711f434dae99dd892c920324fe;hpb=3e664735852117e5756472695b194055f5869510 diff --git a/utils/hpc/HpcMarkup.hs b/utils/hpc/HpcMarkup.hs index 53eaf32..a46fd79 100644 --- a/utils/hpc/HpcMarkup.hs +++ b/utils/hpc/HpcMarkup.hs @@ -12,6 +12,7 @@ import Trace.Hpc.Util import HpcFlags import System.Environment +import System.Directory import Data.List import Data.Maybe(fromJust) import Data.Array @@ -55,6 +56,9 @@ markup_main flags (prog:modNames) = do Nothing -> error $ "unable to find tix file for: " ++ prog Just a -> return a + -- create the dest_dir if needed + createDirectoryIfMissing True dest_dir + mods <- sequence [ genHtmlFromMod dest_dir hpcDirs tix theFunTotals theHsPath invertOutput | tix <- tixs @@ -68,6 +72,9 @@ markup_main flags (prog:modNames) = do let writeSummary name cmp = do let mods' = sortBy cmp mods + + + putStrLn $ "Writing: " ++ (name ++ ".html") writeFile (dest_dir ++ "/" ++ name ++ ".html") $ @@ -75,6 +82,7 @@ markup_main flags (prog:modNames) = do "