class Object
Public Instance Methods
skip_building_extension?()
click to toggle source
typed: false
# File ext/ddtrace_profiling_native_extension/extconf.rb, line 2 def skip_building_extension? # We don't support JRuby for profiling, and JRuby doesn't support native extensions, so let's just skip this entire # thing so that JRuby users of dd-trace-rb aren't impacted. on_jruby = RUBY_ENGINE == 'jruby' # Experimental toggle to disable building the extension. # Disabling the extension will lead to the profiler not working in future releases. # If you needed to use this, please tell us why on <https://github.com/DataDog/dd-trace-rb/issues/new>. disabled_via_env = ENV['DD_PROFILING_NO_EXTENSION'].to_s.downcase == 'true' on_jruby || disabled_via_env end