Sha256: e4079a9a2ede63b64528a28f36c2235545ff2c16c006ec03c36853a560dc4f18

Contents?: true

Size: 1.64 KB

Versions: 91

Compression:

Stored size: 1.64 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>
		<th class="left">Locals</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>
  <td class="locals">
  	<%= thread.keys.map{|k| h k}.join("</br>") %>
  </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>
		<th class="left">Locals</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>
  <td class="locals">
  	<%= (thread.keys - ['newrelic_label']).map{|k| h k}.join("</br>") %>
  </td>
</tr>
<% end %>
<% end %>

</table>

Version data entries

91 entries across 91 versions & 4 rubygems

Version Path
newrelic_rpm-3.5.2.17 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.1.14 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.1.14.beta ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.1.beta1 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.0.1 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.1.alpha ui/views/newrelic/threads.rhtml
newrelic_rpm-3.5.0 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.2.1 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.2 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.2.beta1 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.1 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.1.beta1 ui/views/newrelic/threads.rhtml
ghazel-newrelic_rpm-3.4.0.2 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.0.1 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.0 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.0.beta2 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.3.5 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.3.5.beta1 ui/views/newrelic/threads.rhtml
newrelic_rpm-3.4.0.beta1 ui/views/newrelic/threads.rhtml
dolores_rpm-3.3.4.8 ui/views/newrelic/threads.rhtml