Project

General

Profile

Actions

Bug #4613

closed

define_method lacks trace events

Added by rogerdpack (Roger Pack) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
-
Backport:
[ruby-core:35894]

Description

=begin

With this code:

class Example
define_method "test" do
3
end
end
ex = Example.new
100.times {
ex.test
}

1.8.7 prints out the "test" method entrance and exits [1], but 1.9.{2,3} do not print either of them.

[2] has a potential patch to help resolve it.
It may also be related to [3]

[1] https://gist.github.com/896741
[2] https://github.com/rdp/ruby-prof/issues#issue/48
[3] http://redmine.ruby-lang.org/issues/3660

Cheers!
-r
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0