Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
51134 commits behind the upstream repository.
  • AndyGill's avatar
    d5934bbb
    Haskell Program Coverage · d5934bbb
    AndyGill authored
    This large checkin is the new ghc version of Haskell
    Program Coverage, an expression-level coverage tool for Haskell.
    
    Parts:
    
     - Hpc.[ch] - small runtime support for Hpc; reading/writing *.tix files.
     - Coverage.lhs - Annotates the HsSyn with coverage tickboxes.
      - New Note's in Core,
          - TickBox      -- ticked on entry to sub-expression
          - BinaryTickBox  -- ticked on exit to sub-expression, depending
    	       	     -- on the boolean result.
    
      - New Stg level TickBox (no BinaryTickBoxes, though) 
    
    You can run the coverage tool with -fhpc at compile time. 
    Main must be compiled with -fhpc. 
    				      
    d5934bbb
    History
    Haskell Program Coverage
    AndyGill authored
    This large checkin is the new ghc version of Haskell
    Program Coverage, an expression-level coverage tool for Haskell.
    
    Parts:
    
     - Hpc.[ch] - small runtime support for Hpc; reading/writing *.tix files.
     - Coverage.lhs - Annotates the HsSyn with coverage tickboxes.
      - New Note's in Core,
          - TickBox      -- ticked on entry to sub-expression
          - BinaryTickBox  -- ticked on exit to sub-expression, depending
    	       	     -- on the boolean result.
    
      - New Stg level TickBox (no BinaryTickBoxes, though) 
    
    You can run the coverage tool with -fhpc at compile time. 
    Main must be compiled with -fhpc. 
    				      
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Hpc.h 109 B
#ifndef HPC_H
#define HPC_H

extern void startupHpc(void);
extern void exitHpc(void);

#endif /* HPC_H */