[GHC] #8473: Generate table of cost-centre numbers with source locations

GHC ghc-devs at haskell.org
Wed Oct 23 18:04:15 UTC 2013


#8473: Generate table of cost-centre numbers with source locations
------------------------------------+-------------------------------------
       Reporter:  lars_e_krueger    |             Owner:
           Type:  feature request   |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Profiling         |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:  7105              |
------------------------------------+-------------------------------------
 .prof files contain a cost centre number, which I assume is cc_key from
 CostCentre.lhs. It would be immensely helpful if the compiler creates a
 simpe table. This way, one could look up the number in .prof, check the
 table and the exact source location. It would also help with #7105, I
 think.

 Suggestion for the format:

 {{{
 no.   file     begin   end
 1     main.hs  127:7   128:14
 }}}

 Meaning: Cost centre 1 is in file main.hs, begins at line 127, character 7
 and ends at line 128, character 14.

 If somebody points me in the right direction, and the whole thing is not
 too complicated, I can try my hand at implementing it myself.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8473>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list