线程列表

<% main = Thread.main threads = Thread.list - [ main ] oa_threads = [] threads.delete_if { | thread | oa_threads << thread if thread.key?(:oneapm_label) } %>
<% ([ main ] + threads).each_with_index do | thread, i | %> <% end %>
应用程序线程列表
Name Status Group Priority
<%= h(thread == main ? 'main' : thread.to_s) %> <%= h(thread.status || 'terminated with exception') %> <%= h(thread.group || 'none') %> <%= h thread.priority %>
<% if oa_threads.size > 0 %> <% oa_threads.each_with_index do | thread, i | %> <% end %> <% end %>
OneAPM探针线程列表
Name Status Group Priority
<%= h thread[:oneapm_label] %> <%= h(thread.status || 'terminated with exception') %> <%= h(thread.group || 'none') %> <%= h thread.priority %>