YJIT: Accept key for runtime_stats to return only that stat (#11536)

This commit is contained in:
Randy Stauner 2024-09-17 17:06:27 -07:00 committed by GitHub
parent 39679d7fab
commit 7c4b028435
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
Notes: git 2024-09-18 00:06:44 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
4 changed files with 106 additions and 53 deletions

2
yjit.c
View file

@ -1227,7 +1227,7 @@ rb_yjit_set_exception_return(rb_control_frame_t *cfp, void *leave_exit, void *le
VALUE rb_yjit_stats_enabled_p(rb_execution_context_t *ec, VALUE self);
VALUE rb_yjit_print_stats_p(rb_execution_context_t *ec, VALUE self);
VALUE rb_yjit_trace_exit_locations_enabled_p(rb_execution_context_t *ec, VALUE self);
VALUE rb_yjit_get_stats(rb_execution_context_t *ec, VALUE self);
VALUE rb_yjit_get_stats(rb_execution_context_t *ec, VALUE self, VALUE key);
VALUE rb_yjit_reset_stats_bang(rb_execution_context_t *ec, VALUE self);
VALUE rb_yjit_disasm_iseq(rb_execution_context_t *ec, VALUE self, VALUE iseq);
VALUE rb_yjit_insns_compiled(rb_execution_context_t *ec, VALUE self, VALUE iseq);