Skip to content

Profiling call count frequently 0 when it shouldn't be

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.

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