Sha256: 2f960585c8bac2165a2c8c80bf43621c08048cabb7ab2e2aac5ee42881e21fbf
Contents?: true
Size: 1.4 KB
Versions: 100
Compression:
Stored size: 1.4 KB
Contents
<h2>Thread List</h2> <p><%= link_to 'Back', 'index' %></p> <table> <thead><th class="title" colspan="5">Application Threads</th></thead> <thead> <th class="left">Name</th> <th class="left">Status</th> <th class="left">Group</th> <th class="left">Priority</th> </thead> <% 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 | %> <tr class="odd_row"> <td valign="top"><%= h(thread == main ? 'main' : thread.to_s) %></td> <td valign="top"><%= h(thread.status || 'terminated with exception') %></td> <td valign="top"><%= h(thread.group || 'none') %></td> <td valign="top"><%= h thread.priority %></td> </tr> <% end %> <% if nr_threads.size > 0 %> <tr><td> </td></tr> <thead><th class="title" colspan="5">New Relic Agent Threads</th></thead> <thead> <th class="left">Name</th> <th class="left">Status</th> <th class="left">Group</th> <th class="left">Priority</th> </thead> <% nr_threads.each_with_index do | thread, i | %> <tr class="odd_row"> <td valign="top"><%= h thread[:newrelic_label] %></td> <td valign="top"><%= h(thread.status || 'terminated with exception') %></td> <td valign="top"><%= h(thread.group || 'none') %></td> <td valign="top"><%= h thread.priority %></td> </tr> <% end %> <% end %> </table>
Version data entries
100 entries across 100 versions & 5 rubygems