Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In the `profile probe, what do “Calls to Self/Child” columns mean?

columns mean probe
0
Posted

In the `profile probe, what do “Calls to Self/Child” columns mean?

0

Assume we have a program foo with two functions outer() and inner() . outer loops and calls inner which does some work. We setup the foo.profile.cfg file to profile both of them. If we look at the output for routine outer we would expect to see Calls to Self being one – it’s just called once. Calls to Child should be something like 10 or however many times inner is called. Similarly the two tables show individual and cumulative time. The individual time for outer would be much lower than the cumulative time since the individual time has all of the recorded times for inner subtracted from it. Finally, note that this only applies to routines profiled. If outer also calls routine another() which is not profiled, another ‘s call counts do not show and its time is recorded as part of outer ‘s individual time.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123