TracePoint#enable(target_thraed:) [Feature #15473]

* vm_trace.c (tracepoint_enable_m): `TracePoint#enable` supports
  `target_thread:` keyword to filter a target thread.
  [Feature #15473]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2018-12-29 16:44:09 +00:00
parent fd7d4a871c
commit 94f4a0e91e
3 changed files with 54 additions and 4 deletions

View file

@ -133,8 +133,8 @@ class IO
end
class TracePoint
def enable target: nil, target_line: nil, &blk
self.__enable target, target_line, &blk
def enable target: nil, target_line: nil, target_thread: nil, &blk
self.__enable target, target_line, target_thread, &blk
end
end