[ruby-cvs:70653] mame:r63562 (trunk): Add TracePoint#parameters

mame at ruby-lang.org mame at ruby-lang.org
Sun Jun 3 14:10:41 JST 2018


mame	2018-06-03 14:10:41 +0900 (Sun, 03 Jun 2018)

  New Revision: 63562

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63562

  Log:
    Add TracePoint#parameters
    
    It can be used to get the parameters' information of method and block.
    There was no way to get block parameters.
    It was possible but ineffective to get method parameters via Method
    object: `tp.defined_class.method(tp.method_id).parameters`
    TracePoint#parameters allows us to get the information easily.
    [Feature #14694]

  Added files:
    trunk/spec/ruby/core/tracepoint/parameters_spec.rb
  Modified files:
    trunk/method.h
    trunk/proc.c
    trunk/test/ruby/test_settracefunc.rb
    trunk/vm_trace.c


More information about the ruby-cvs mailing list