
#11542: Profiling call count frequently 0 when it shouldn't be -------------------------------------+------------------------------------- Reporter: augustss | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Here's an example (lines shortened): {{{ FUNCTION MODULE CALLS addinMTypeM Cortex.Stem.Exp.Addin 212462 56309 0.0 0.0 0.1 0.0 addinMTypeM'' Cortex.Stem.Exp.Addin 212463 0 0.0 0.0 0.1 0.0 memoize Cortex.Utils.Memo 212464 0 0.0 0.0 0.1 0.0 memoizeIO Cortex.Utils.Memo 212465 0 0.0 0.0 0.1 0.0 addinMTypeM' Cortex.Stem.Exp.Addin 212467 13799 0.0 0.0 0.1 0.0 }}} Maybe I don't understand the profile info, but here is my interpretation. addinMTypeM is called 56309 times, and then it calls addinMTypeM'' 0 times, which calls memoize 0 times, which calls memoizeIO 0 times, which calls addinMType' 13799. How can a function that was called 0 times call another function 13799 times? My profile are full of the 0 entries. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11542 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler