module Datadog::Runtime::ThreadCount

Retrieves number of threads from runtime

Public Instance Methods

available?() click to toggle source
# File lib/ddtrace/runtime/thread_count.rb, line 11
def available?
  Thread.respond_to?(:list)
end
value() click to toggle source
# File lib/ddtrace/runtime/thread_count.rb, line 7
def value
  Thread.list.count
end