梅普罗夫说
Memprof支持所有1.8.x (MRI和REE) VM,只要它们是64位并且包含调试符号。要获得最佳效果,请使用RVM编译ruby,并确保您在64位计算机上。
如何检查我安装的Ruby是否有调试符号?
发布于 2011-01-24 02:23:42
试过调试吗?
$ gdb ruby
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/tom/.rvm/rubies/ruby-1.9.2-p0/bin/ruby...done.
(gdb) 如果它能成功地读取符号,那么合理地假设符号就在那里。至于32位vs 64位,我认为“i 486-linux-gnu”的意思是32位。但我不是专家。
https://stackoverflow.com/questions/4777312
复制相似问题