From: Charlie Savage Date: 2006-06-24T07:49:27+09:00 Subject: Re: ruby-prof-0.4.0 Good idea. Changed checked into SVN - it will be in the next release. Charlie Eric Hodel wrote: > On Jun 22, 2006, at 3:05 PM, Charlie Savage wrote: > >> Hi Mauricio, >> >>> ... and found what is causing the problem. rcov's tests do something >>> like: >>> batsman@tux-chan:~/mess/current$ cat ruby-prof-bomb.rb str = %{module >>> Foo; class Bar; def foo; end end end} >>> eval str >>> Foo::Bar.new.foo >>> Object.class_eval{ remove_const :Foo } >>> eval str >>> Foo::Bar.new.foo >> >> Interesting, I never would have thought of that. Your patch looks >> fine - I've applied it with a slight modification. Results will now >> be output like this: >> >> Foo::Bar#foo >> Foo::Bar#foo_1 >> Foo::Bar#foo_2 >> Foo::Bar#foo_3 >> etc... >> >> So you can tell the different calls apart. > > How about: > > Foo::Bar#foo > Foo::Bar#foo-1 > foo::Bar#foo-2 > ... > > Since foo_1 is a valid method name. > > --Eric Hodel - drbrain@segment7.net - http://blog.segment7.net > This implementation is HODEL-HASH-9600 compliant > > http://trackmap.robotcoop.com > > > >