Skip to content

Generate table of cost-centre numbers with source locations

  1. 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 (closed), 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.

Trac metadata
Trac field Value
Version 7.6.3
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Profiling
Test case
Differential revisions
BlockedBy
Related #7105 (closed)
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information