Method: NewRelic::Agent::Commands::AgentCommandRouter#on_before_shutdown

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

#on_before_shutdown(*args) ⇒ Object



49
50
51
52
53
# File 'lib/new_relic/agent/commands/agent_command_router.rb', line 49

def on_before_shutdown(*args)
  if self.thread_profiler_session.running?
    self.thread_profiler_session.stop(true)
  end
end