Hi all,

Code for entering cost-centres before executing the function/thunk
body is generated in `compiler/codeGen/StgCmmBind.hs`, by `thunkCode`
and `closureCodeBody` functions. But we also have some
`enterCostCentreThunk` and `enterCostCentreFun` calls in
`rts/Apply.cmm` and `rts/StgStdThunks.cmm`. I'm wondering why are
those necessary. Thunk/function bodies already have CCS entries
generated by functions in StgCmmBind so I'm having trouble seeing the
need for this additional entries.

Can anyone explain those to me?

Thanks,

---
Ömer Sinan Ağacan
http://osa1.net
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to