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>&nbsp;</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

Version Path
newrelic_rpm-3.6.3.106 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.3.105.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.3.104 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.3.103.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.2.96 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.2.90.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.1.88 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.1.87 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.1.86.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.1.85.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.0.83 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.0.78 ui/views/newrelic/threads.rhtml
wd_newrelic_rpm-3.5.8 ui/views/newrelic/threads.rhtml
sundawg_newrelic_rpm-3.5.8.2 ui/views/newrelic/threads.rhtml
sundawg_newrelic_rpm-3.5.8.1 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.0.74.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.8.72 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.8.70 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.8.64.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.7.59 ui/views/newrelic/threads.rhtml