module Datadog::Core::Environment::ThreadCount

Retrieves number of threads from runtime

Public Instance Methods

available?() click to toggle source
# File lib/datadog/core/environment/thread_count.rb, line 13
def available?
  Thread.respond_to?(:list)
end
value() click to toggle source
# File lib/datadog/core/environment/thread_count.rb, line 9
def value
  Thread.list.count
end