#2191: A way to programmatically cause GHC to report the cost center stack
associated with a value
--------------------------------+-------------------------------------------
    Reporter:  SamB             |       Owner:           
        Type:  feature request  |      Status:  new      
    Priority:  normal           |   Component:  Profiling
     Version:  6.8.2            |    Severity:  normal   
    Keywords:                   |    Testcase:           
Architecture:  Unknown          |          Os:  Unknown  
--------------------------------+-------------------------------------------
 I find that I often wish I could ask GHC to tell me "where did *that*
 value come from?" as I debug JHC. Since GHC obviously can track this
 information, it seems like it would be fairly simple to implement a way
 for it to report this information as instructed by a running program.
 Perhaps:

 reportCssFor :: a -> b -> b

 I wouldn't really have any desire to use this on thunks, since when I want
 to do this it is usually because I don't like the value (i.e. it isn't in
 the right normal form), and to know this I must already have evaluated it.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2191>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to