I'm trying to use valgrind to profile caffe
model zoo classification. However, it gives me meaningless names for the
functions, and I can only distinguish the method Classify, almost everything else is
coded. I also tried
valgrind --tool=callgrind
--dump-instr=yes --collect-jumps=yes
./build/examples/cpp_classification/classification.bin \
models/bvlc_reference_caffenet/deploy.prototxt \
models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel \
data/ilsvrc12/imagenet_mean.binaryproto \ data/ilsvrc12/synset_words.txt \ examples/images/cat.jpg
but it doesn't help.
Also tried compiling with -pg and
-O flags (as described here
https://github.com/BVLC/caffe/pull/5315/commits/a7333fa56f2f284b148a03c0cef50fe690306b84
), and using gprof, but it gives weird names again.
Also tried gperf, and drawing a
graph, nothing improved.
Any ideas are welcome!