从邮件中找到here http://sources.redhat.com/ml/libc-alpha/2003-07/msg00029.html and here http://sourceware.org/ml/binutils/2002-04/msg00035.html,我提取了以下注释:
给定一个应用程序my_app', which links against a shared object
my_sobj',并已使用 '-g' 编译标志进行编译:
#set the environment variable LD_PROFILE to the name of the shared obj
export LD_PROFILE=my_obj
#run your application
my_app
#this should create a file /var/tmp/my_sobj.profile
#now run sprof
sprof my_sobj my_sobj.profile
这提供了共享库的配置文件信息,而不是 my_app 的配置文件信息
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)