how to interpret these results

313 views
Skip to first unread message

john

unread,
Nov 3, 2009, 1:59:08 PM11/3/09
to webgrind
Hello all, I have a cachgrind file which I've loaded into webgrind and
it's showing me a call to GraphLoader::getGraph with 1 invocation
count, total self cost = 74.51%, total inclusive cost = 92.32%.

But when I drill down into the "calls," I get a list of calls whose
"total call cost" only adds up to less than 18%. What does that mean?

A little extra info: only 5 of the 40 calls listed has a "total call
cost" value > 1%. The greatest one is 9.24%. Next is 2.38, 1.69, 1.36,
1.21.

oetting

unread,
Nov 12, 2009, 11:57:17 AM11/12/09
to webgrind
Hi John

The total self cost is the time spent in the function. That is, doing
anything other than calling other functions.

The total inclusive cost is the time spent in the function plus the
time spent in functions called from that function. (74 + 18 = 92)
Reply all
Reply to author
Forward
0 new messages