[Hackage] #467: Add support for HPC profiling.

Hackage cvs-ghc at haskell.org
Thu Jan 13 13:24:35 CET 2011

#467: Add support for HPC profiling.
  Reporter:  duncan         |        Owner:           
      Type:  enhancement    |       Status:  new      
  Priority:  normal         |    Milestone:  Cabal-1.8
 Component:  Cabal library  |      Version:  
  Severity:  normal         |     Keywords:           
Difficulty:  normal         |   Ghcversion:           
  Platform:                 |  

Comment(by ttuegel):

 The patches I just attached apply against Cabal HEAD and enable the
 following features:

 * {{{setup configure --enable-library-coverage}}}, which build the library
 and test suites with {{{-fhpc}}} and an appropriate {{{-hpcdir}}}

 * When using {{{--enable-library-coverage}}}, {{{setup test collects}}}
 any {{{.tix}}} files generated by HPC and calls {{{hpc markup}}} to
 generate an HTML report for each test suite

 * {{{setup test --keep-tix-files}}}, which instructs setup test to
 preserve {{{.tix}}} files between test suite runs and generate aggregate
 statistics. The default is to remove old {{{.tix}}} files at the start of
 each test run.

 * Fixes the Cabal test suite to generate proper coverage reports when
 using {{{--enable-library-coverage}}}.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/467#comment:8>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list