class Appsignal::Hooks::GvlHook

@!visibility private

def dependencies_present?

def dependencies_present?
  return false if Appsignal::System.jruby?
  require "gvltools"
  Appsignal.config && Appsignal::Probes::GvlProbe.dependencies_present?
rescue LoadError
  false
end

def install

def install
  Appsignal::Probes.register :gvl, Appsignal::Probes::GvlProbe
  ::GVLTools::GlobalTimer.enable if Appsignal.config[:enable_gvl_global_timer]
  ::GVLTools::WaitingThreads.enable if Appsignal.config[:enable_gvl_waiting_threads]
end