-e and specified file does not kick script_compiled TracePoint event
ruby -e ... or
ruby script.rb compile given ruby script. But
script_compiled event is not kicked.
$ ruby -r sample x.rb
We can put TracePoint in sample library but we can't get
script_compiled event on
-e or given
x.rb file. It should be a bug.
Updated by ko1 (Koichi Sasada) about 1 year ago
- Status changed from Open to Closed
Applied in changeset trunk|r66595.
fix missed script_compiled events. [Bug #15471]
- ruby.c (process_options): script_compiled events are missed on command line -e or specified file. this commit fix it. [Bug #15471]
This patch should be backport to Ruby 2.6 branch.
- vm_core.h (rb_exec_event_hook_script_compiled): introduce utility function to invoke a script_compiled event.