lib/stackprof.rb in stackprof-0.2.20 vs lib/stackprof.rb in stackprof-0.2.21
- old
+ new
@@ -1,12 +1,16 @@
-require "stackprof/stackprof"
+if RUBY_ENGINE == 'truffleruby'
+ require "stackprof/truffleruby"
+else
+ require "stackprof/stackprof"
+end
if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
StackProf.use_postponed_job!
end
module StackProf
- VERSION = '0.2.20'
+ VERSION = '0.2.21'
end
StackProf.autoload :Report, "stackprof/report.rb"
StackProf.autoload :Middleware, "stackprof/middleware.rb"