问题
I have built my program with "-g -O2
" and ran valgrind
+cachegrind. I am unsure how to interpret the output. Here is the output:
http://daviddoria.com/Uploads/callgrind.CacheMisses
My "whole program" is the InpaintingAlgorithm
function that is 98.4% of "main". So far so good. Now looking at the callees of InpaintingAlgorithm
, 92.9% of InpaintingAlgorithm
is LinearSearchKNNProperty::operator()
. This is my "inner loop", and again I expect a huge amount of the time to be spent here.
Now here is where I get confused. Looking at the callees of LinearSearchKNNProperty::operator()
, there is really nothing there?? The largest function is only 7.64%, and the rest are < 0.25%. I don't understand how the sum of all of the callees only adds to about 8%. Where is the other 92%?? (Presumably the stuff I would be looking for to make it go faster!)
If anyone could point me to my error in reading these results, I would appreciate it!
来源:https://stackoverflow.com/questions/12231638/confused-about-profiling-result