linux – 如何使用sprof?
发布时间:2020-12-13 19:21:34 所属栏目:Linux 来源:网络整理
导读:请举例说明一下? 解决方法 从 here和 here发现的电子邮件中,我提取了以下注释: 给定一个应用程序my_app’,它链接到共享对象my_sobj’,并且已经使用’-g’编译标志进行编译: #set the environment variable LD_PROFILE to the name of the shared objexpor
请举例说明一下?
解决方法
从
here和
here发现的电子邮件中,我提取了以下注释:
给定一个应用程序my_app’,它链接到共享对象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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |