开发者

gprof error: profile file has unsupported version

开发者 https://www.devze.com 2022-12-08 16:42 出处:网络
I am trying to profile a shared library but there is an error when I invoke gprof: $ export LD_PROFILE=libMy.so

I am trying to profile a shared library but there is an error when I invoke gprof:

    $ export LD_PROFILE=libMy.so
    $ ./a.out
    $ gprof -q libMy.so /var/tmp/libMy.so.profile
    gprof: file /var/tmp/libMy.so.profile has unsupported version 131071开发者_开发问答

Shared library was compiled with -ggdb -pg flags.

gcc version 4.2.1, gprof version 2.20, linux 2.6.22

Any ideas what the problem is?


I've never used glibc profiling, but as far as I can tell, the generated .profile file is not in the format gprof expects. Try sprof instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消