Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试分析共享库,但调用 gprof 时出现错误:
$ 出口 LD_PROFILE=libMy.so $ ./a.out $ gprof -q libMy.so /var/tmp/libMy.so.profile gprof:文件 /var/tmp/libMy.so.profile 的版本不受支持 131071
共享库是使用 -ggdb -pg 标志编译的。
gcc 4.2.1 版,gprof 2.20 版,linux 2.6.22
任何想法是什么问题?
我从未使用过 glibc 分析,但据我所知,生成的.profile文件不是gprof预期的格式。改用sprof 。
.profile
gprof