Sha256: a4b1de8232d76ba7a2338f940d0d7a17a88579e3a5d51ba7d1e7f4d1cb3c8ead

Contents?: true

Size: 1.12 KB

Versions: 42

Compression:

Stored size: 1.12 KB

Contents

<h3>Redis Usage</h3>
<table id="redis_usage">
<tr>
  <th>Total Calls</th>
  <td><%= stats.calls %></td>

  <th>Total Time</th>
  <td><%= stats.display_time %></td>
</tr>
</table>

<% if stats.queries.any? %>
  <h3>Breakdown</h3>
  <table id="redis_breakdown">
    <thead>
      <tr>
        <th>Time&nbsp;(ms)</th>
        <th>Command</th>
        <th class="backtrace"></th>
      </tr>
    </thead>
    <tbody>
      <% i = 1 %>
      <% stats.queries.each do |query| %>
        <tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
          <td><%= query.display_time %></td>
          <td><%= query.command %></td>
          <td><%= "<a href='#' class='reveal_backtrace'>Show Backtrace</a>" if query.has_backtrace? %></td>
        </tr>
        <% if query.has_backtrace? %>
          <tr style="display:none">
            <td></td>
            <td colspan="2">
              <ul>
                <% query.filtered_backtrace.each do |line| %>
                  <li><%=h line %></li>
                <% end %>
              </ul>
            </td>
          </tr>
        <% end %>
        <% i += 1 %>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
rack-insight-0.6.4 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.6.3 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.6.2 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.30 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.29 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.28 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.27 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.26 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.25 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.24 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.23 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.22 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.21 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.20 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.19 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.18 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.17 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.16 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.15 lib/rack/insight/views/panels/redis.html.erb
rack-insight-0.5.14 lib/rack/insight/views/panels/redis.html.erb