[Haskell] reading call graphs

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Wed Aug 24 06:09:52 EDT 2005


"Scherrer, Chad" <Chad.Scherrer at pnl.gov> writes:

>                                         individual    inherited
> COST CENTRE  MODULE   no.    entries  %time %alloc   %time %alloc
>  
> 
> MAIN         MAIN      1           0   0.0    0.0   100.0  100.0
>  main        Main    228       92329   0.2    0.9    99.8   99.8
>   step       Main    259         679  38.4   26.6    56.6   39.2
> 
> I'm trying to understand the "entries" column. I thought this was the
> number of times a given function is called. But "main" is nonrecursive,
> and only calls "step" (also nonrecursive) once. Where are the 92329 and
> 679 coming from?

Perhaps these functions are split into smaller chunks by the
compiler/optimiser?  Then the profiler would aggregate the data for
the individual chunks back up into the original cost centre.

Regards,
    Malcolm


More information about the Haskell mailing list