<%= link_to 'Back', :action => 'index' %>
Application Threads | Name | Status | Group | Priority | Locals | <% main = Thread.main threads = Thread.list - [ main ] nr_threads = [] threads.delete_if { | thread | nr_threads << thread if thread.key? 'newrelic_label' } ([ main ] + threads).each_with_index do | thread, i | -%>
---|---|---|---|---|
<%= h(thread == main ? 'main' : thread.to_s) %> | <%= h(thread.status || 'terminated with exception') %> | <%= h(thread.group || 'none') %> | <%= h thread.priority %> | <%= thread.keys.map{|k| h k}.join("") %> |
New Relic Agent Threads | Name | Status | Group | Priority | Locals | <% nr_threads.each_with_index do | thread, i | -%>
<%= h thread['newrelic_label'] %> | <%= h(thread.status || 'terminated with exception') %> | <%= h(thread.group || 'none') %> | <%= h thread.priority %> | <%= (thread.keys - ['newrelic_label']).map{|k| h k}.join("") %> |