IntersectMBO / IntersectMBO/plutus
Make profiling output include better source span
- Dominant language
- Haskell
- Stars
- 1.6k
- Forks
- 508
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
### Describe the feature you'd like
https://github.com/IntersectMBO/plutus/blob/a8a5a3519db6a95d25fff6b5be54e0067206cc4a/plutus-tx-plugin/src/PlutusTx/Compiler/Expr.hs#L662-L687
This function is used to insert call profiling information to each function calls which is used to run profiling and also call trace information. Currently, it gets source span from `GHC.Var`; source span attached to `GHC.Var` is only available if the module `GHC.Var` resides in gets compiled from scratch without compilation cache. So, to get accurate source spans for these profiling traces, one must always run `cabal clean` and if not it will add traces without source span.
It should be possible now to get accurate srcspan without needing `cabal clean` with https://github.com/IntersectMBO/plutus/pull/7640
### Describe alternatives you've considered
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.