2011-01-23 25 views
0

Memprof如何檢查Ruby的安裝是否有調試符號?

Memprof支持所有1.8.x的(MRI和REE)虛擬機,只要它們是64位和包含調試符號。爲了獲得最佳效果,請使用RVM編譯ruby並確保您位於64位機器上。

如何檢查Ruby的安裝是否有調試符號?

+1

確實RUBY_CONFIG包含此信息嗎? – 2011-01-24 01:26:12

+0

@Ryan Bigg:``STRIP「=>」strip -S -x「`。這看起來不太好... – 2011-01-24 02:47:41

回答

2

嘗試調試嗎?

$ 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位。但我不是這方面的專家。