Sha256: 7398c3cf6e021a3f9c5068caa095b179acfff7d1127be28856036f137fe02344
Contents?: true
Size: 1.74 KB
Versions: 1
Compression:
Stored size: 1.74 KB
Contents
<h2 class="page-header">Group Id: <%= @group_id %></h2> <% if @sample_profile %> <div class="row"> <table class="table table-bordered"> <thead> <th>Application</th> <th>Total Queries</th> <th>Total Time</th> <th>Avg Total Time</th> <% @sample_profile['extra_attrs'].to_h.keys.each do |key| %> <th><%= key %></th> <% end %> </thead> <tbody> <tr> <td><%= @sample_profile['application_name'] %></td> <td><%= @profiles_count %></td> <td><%= @profiles_total_time %></td> <td><%= @profiles_total_time / @profiles_count %></td> <% @sample_profile['extra_attrs'].to_h.keys.each do |key| %> <td><%= @sample_profile['extra_attrs'][key.to_s] %></td> <% end %> </tr> </tbody> </table> </div> <% end %> <div class="row"> <table class="table table-bordered"> <thead> <th>File Name</th> <th>Method</th> <th>Total Time</th> <th>Instrument Payload</th> <th> </th> </thead> <% @grouped_profiles.each_with_index do |(method, profiles), grouped_index| %> <tbody class="<%= (grouped_index % 2 == 0) ? 'tbody-gray' : '' %>"> <% profiles.each do |profile| %> <tr> <td><%= profile['file'].split('/').last %>:<%= profile['line'] %></td> <td><%= profile['method'] %></td> <td><%= profile['total_time'] %></td> <td><pre><code><%= profile['instrument_payload'] %></code></pre></td> <td><a href="<%= root_path %>profiler/<%= profile['_id'] %>" class="btn btn-default"><span class="glyphicon glyphicon-eye-open"></span></td> </tr> <% end %> </tbody> <% end %> </table> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_profiler-0.0.1 | web/views/group_id.erb |