作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
请举例说明?
最佳答案
从找到的电子邮件中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
关于linux - 如何使用sprof?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/881074/
我尝试使用 sprof 分析共享库提供的函数。分析有效,但包含函数名称的列的格式非常难看。例如,我正在使用 boost 提供的 unordered_map。平面配置文件中的关联条目是: Each sa
我在/tmp 文件夹中创建了一个共享库“mylib.so”。我想配置 mylib.so。为此,我采取了以下步骤 导出 LD_PROFILE_OUTPUT=${PWD} 导出 LD_PROFILE= m
我正在尝试分析我们的共享库,但每当我设置环境变量 LD_PROFILE 时,我都会收到“PLTREL not found in object”。是什么赋予了?我缺少某种链接器标志还是什么?互联网上似乎
更新:升级到 SBCL 1.0.24 解决了我的问题。 (尽管我还需要将 SLIME 升级到 11-23-2008 修订版。稳定的 2006-04-20 修订版以及 CVS 的头部似乎不适用于 SBC
我是一名优秀的程序员,十分优秀!