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.7.3.199 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.2.195 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.2.192 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.2.190.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.1.188 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.1.182 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.1.180 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.0.177 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.0.174.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.9.171 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.8.168 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.8.164 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.7.159 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.7.159.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.7.152 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.6.147 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.5.130 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.4.122 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.4.113.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.6.3.111 ui/views/newrelic/threads.rhtml