Sha256: 518542cd1917a0ba5d38f319481e3fbd1098b374c048f3ddb954729053b621ce
Contents?: true
Size: 671 Bytes
Versions: 74
Compression:
Stored size: 671 Bytes
Contents
# frozen_string_literal: true module Appsignal class Hooks # @api private class GvlHook < Appsignal::Hooks::Hook register :gvl def dependencies_present? return false if Appsignal::System.jruby? require "gvltools" Appsignal.config && Appsignal::Probes::GvlProbe.dependencies_present? rescue LoadError false end 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 end end end
Version data entries
74 entries across 74 versions & 1 rubygems