Method: NewRelic::Agent::Commands::AgentCommandRouter#harvest_from_thread_profiler_session

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

#harvest_from_thread_profiler_sessionObject



70
71
72
73
74
75
76
77
# File 'lib/new_relic/agent/commands/agent_command_router.rb', line 70

def harvest_from_thread_profiler_session
  if self.thread_profiler_session.ready_to_harvest?
    self.thread_profiler_session.stop(true)
    [self.thread_profiler_session.harvest]
  else
    []
  end
end