From 9cd5441d28002768d9f492140757652548b86727 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 12 Mar 2023 13:55:39 -0700 Subject: RJIT: Implement --rjit-trace-exits --- rjit.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rjit.rb') diff --git a/rjit.rb b/rjit.rb index da75576746..ebad3529ef 100644 --- a/rjit.rb +++ b/rjit.rb @@ -18,6 +18,12 @@ module RubyVM::RJIT print_stats end end + if Primitive.rjit_trace_exits_enabled_p + at_exit do + Primitive.rjit_stop_stats + dump_trace_exits + end + end end if RubyVM::RJIT.enabled? -- cgit v1.2.1