mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_backtrace.c, include/ruby/debug.h: add new APIs
* VALUE rb_profile_frame_method_name(VALUE frame) * VALUE rb_profile_frame_qualified_method_name(VALUE frame) * iseq.c (rb_iseq_klass), internal.h: add new internal function rb_iseq_method_name(). * ext/-test-/debug/profile_frames.c (profile_frames), test/-ext-/debug/test_profile_frames.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
377758fdcb
commit
cff2b2b666
7 changed files with 89 additions and 5 deletions
|
@ -26,6 +26,8 @@ profile_frames(VALUE self, VALUE start_v, VALUE num_v)
|
|||
rb_ary_push(ary, rb_profile_frame_first_lineno(buff[i]));
|
||||
rb_ary_push(ary, rb_profile_frame_classpath(buff[i]));
|
||||
rb_ary_push(ary, rb_profile_frame_singleton_method_p(buff[i]));
|
||||
rb_ary_push(ary, rb_profile_frame_method_name(buff[i]));
|
||||
rb_ary_push(ary, rb_profile_frame_qualified_method_name(buff[i]));
|
||||
|
||||
rb_ary_push(result, ary);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue