Memprof supports all 1.8.x (MRI and REE) VMs, as long as they are 64-bit and contain debugging symbols. For best results, use RVM to compile ruby and make sure you are on a 64-bit machine.
如何检查我安装的 Ruby 是否有调试符号?
最佳答案
尝试调试它?
$ 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位和64位,我认为“i486-linux-gnu”意味着32位。但我不是这方面的专家。
关于ruby - 如何检查我安装的 Ruby 是否有调试符号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4777312/