Changes between Version 4 and Version 5 of GhcDebuggers


Ignore:
Timestamp:
Jan 26, 2007 2:46:25 PM (7 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GhcDebuggers

    v4 v5  
    3434   breakpointJump <id> <vals> <srcloc> E 
    3535 
    36 where <id> is a pointer into a data structure in Ghci which contains indentifer infos, <vals> is a list of values of local variables, and <srcloc> is a source location of the breakpoint. 
     36where <id> is a pointer into a data structure in Ghci which contains indentifer infos, <vals> is a list of values of local variables, and <srcloc> is a source location of the breakpoint. The problem with this is that the data structures associated with <id> <vals> <srcloc> are turned into let allocations by the compiler. This is costly. To keep the costs down GhciD only annotates a limited class of expressions, such as function bodies and case alternatives.  
     37 
     38HpcT transforms E like so: 
     39 
     40   case tick<n> E of () -> E 
     41 
     42This is cheaper than breakpointJump because it doesn't involve any let allocations. Therefore ticks can be added to a larger class of sub expressions. Obviously the downside is that tick does not have access to local variable information. 
     43