# File lib/new_relic/agent/commands/xray_session_collection.rb, line 55 def harvest_thread_profiles return NO_PROFILES unless NewRelic::Agent::Threading::BacktraceService.is_supported? profiles = active_thread_profiling_sessions.map do |session| NewRelic::Agent.logger.debug("Harvesting profile for X-Ray session #{session.inspect}") @backtrace_service.harvest(session.key_transaction_name) end profiles.reject! {|p| p.empty?} profiles.compact end