Ruby-prof gem for ruby 1.9.x

Hi,

I am using ruby-prof on mac os 10.7

with
ruby-prof (0.10.8)
gcc version 4.2.1
ruby 1.8.7

I have got following error while setting Measurements.

‘measure_mode=’: no implicit conversion from nil to integer

at following line

RubyProf.measure_mode=RubyProf::MEMORY

I tried to print RubyProf::MEMORY constants value and it gives “nil”
value.

I think this constant not get initialized because of some reasons.
Also following constants also returns null value.

RubyProf::ALLOCATIONS
RubyProf::MEMORY
RubyProf::GC_RUNS
RubyProf::GC_TIME

Any idea to get them set properly?

the os gem may help

OS.rss_bytes
=> 15888384

Any idea to get them set properly?

the os gem may help

OS.rss_bytes
=> 15888384
or the mem prof gem
might help.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs