diff options
author | Jeremy Evans <[email protected]> | 2021-08-21 10:15:01 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-21 10:15:01 -0700 |
commit | 48c8df9e0eb295af06d593ce37ce1933c0ee1d90 (patch) | |
tree | 4a8092796f397a12835f89c4f220a84fa8f5f867 /iseq.h | |
parent | f51a6ace06cecd193bf00747a63809849e254050 (diff) |
Allow tracing of optimized methods
This updates the trace instructions to directly dispatch to
opt_send_without_block. So this should cause no slowdown in
non-trace mode.
To enable the tracing of the optimized methods, RUBY_EVENT_C_CALL
and RUBY_EVENT_C_RETURN are added as events to the specialized
instructions.
Fixes [Bug #14870]
Co-authored-by: Takashi Kokubun <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4739
Merged-By: jeremyevans <[email protected]>
Diffstat (limited to 'iseq.h')
-rw-r--r-- | iseq.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -74,6 +74,8 @@ ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size) RUBY_EVENT_END | \ RUBY_EVENT_CALL | \ RUBY_EVENT_RETURN| \ + RUBY_EVENT_C_CALL| \ + RUBY_EVENT_C_RETURN| \ RUBY_EVENT_B_CALL| \ RUBY_EVENT_B_RETURN| \ RUBY_EVENT_COVERAGE_LINE| \ |