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-4.0.0.332 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.18.1.330 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.18.0.329 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.17.2.327 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.17.1.326 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.17.0.325 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.16.3.323 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.16.2.321 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.16.1.320 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.16.0.318 ui/views/newrelic/threads.rhtml
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-3.15.2.317/ui/views/newrelic/threads.rhtml
newrelic_rpm-3.15.2.317 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.15.1.316 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.15.0.314 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.14.3.313 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.14.2.312 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.14.1.311 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.14.0.305 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.13.2.302 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.13.1.300 ui/views/newrelic/threads.rhtml