Sha256: 91f7892e062d6a38c191961e055978c4a1f8e3d0f25bd216470a9ae8843226e5
Contents?: true
Size: 1.46 KB
Versions: 38
Compression:
Stored size: 1.46 KB
Contents
<div class="row"> <div class="col-lg-12"> <h2>线程列表</h2> </div> <% main = Thread.main threads = Thread.list - [ main ] oa_threads = [] threads.delete_if { | thread | oa_threads << thread if thread.key?(:oneapm_label) } %> <div class="col-lg-6"> <table class="table"> <caption>应用程序线程列表</caption> <thead> <th>Name</th> <th>Status</th> <th>Group</th> <th>Priority</th> </thead> <% ([ main ] + threads).each_with_index do | thread, i | %> <tr> <td><%= h(thread == main ? 'main' : thread.to_s) %></td> <td><%= h(thread.status || 'terminated with exception') %></td> <td><%= h(thread.group || 'none') %></td> <td><%= h thread.priority %></td> </tr> <% end %> </table> </div> <div class="col-lg-6"> <table class="table"> <caption>OneAPM探针线程列表</caption> <% if oa_threads.size > 0 %> <thead> <th>Name</th> <th>Status</th> <th>Group</th> <th>Priority</th> </thead> <% oa_threads.each_with_index do | thread, i | %> <tr> <td><%= h thread[:oneapm_label] %></td> <td><%= h(thread.status || 'terminated with exception') %></td> <td><%= h(thread.group || 'none') %></td> <td><%= h thread.priority %></td> </tr> <% end %> <% end %> </table> </div> </div>
Version data entries
38 entries across 38 versions & 1 rubygems