gperftools and pprof do not print my function names. Need advice on how to fix this
问题 I'm currently writing a game in C++ using SDL on Ubuntu. I recently multithreaded my engine, so I switched from profiling with valgrind/callgrind to gperftools. I have gotten it to work, but it will not print my own function names. Oddly enough, it recognizes SDL function names (I've seen the reverse happening on a few threads online; shared library functions not having their names found). kcachegrind Output I run my program, and the execute the following two commands in order to get this: