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.13.0.299 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.12.1.298 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.12.0.288 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.11.2.286 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.11.1.284 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.11.0.283 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.10.0.279 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.9.275 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.8.273 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.7.266 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.6.257 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.5.251 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.4.245 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.3.241 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.2.239 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.1.236 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.9.0.229 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.8.1.221 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.8.0.218 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.7.3.204 ui/views/newrelic/threads.rhtml