Method: NewRelic::Agent::Commands::AgentCommandRouter#log_profiles

Defined in:
lib/new_relic/agent/commands/agent_command_router.rb

#log_profiles(profiles) ⇒ Object



79
80
81
82
83
84
85
86
# File 'lib/new_relic/agent/commands/agent_command_router.rb', line 79

def log_profiles(profiles)
  if profiles.empty?
    ::NewRelic::Agent.logger.debug('No thread profiles with data found to send.')
  else
    profile_descriptions = profiles.map { |p| p.to_log_description }
    ::NewRelic::Agent.logger.debug("Sending thread profiles [#{profile_descriptions.join(', ')}]")
  end
end