Sha256: edbefb7297e3de366adafb07aa56a6f6102c0cb89e6c62e64fa94e5f197c638f

Contents?: true

Size: 1.36 KB

Versions: 10

Compression:

Stored size: 1.36 KB

Contents

<li class="trace <%= trace.type %>">
  <span class="trace-name " style="width: calc(calc(<%= trace.from_start_percent %>% * .9) + 10%)"><%= trace.label %></span>
  <div class="trace-bar" style="width: max(calc(<%= trace.duration_percent %>% * .9), 5px)">
    <div class="popover">
      <section class="popover-header">
        <h1 class="popover-description"><%= trace.description %></h1>
        <button class="popover-close">x</button>
      </section>
      <section class="popover-body">
        <%= trace.payload %>
        <table class="trace-table">
          <thead>
          <tr>
            <th class="text-left"></th>
            <th class="text-right">Response Time</th>
            <th class="text-right">Allocations</th>
          </tr>
          </thead>
          <tbody>
          <tr>
            <td>Total</td>
            <td class="text-right"><%= trace.duration %>ms</td>
            <td class="text-right"><%= trace.allocations %></td>
          </tr>
          <tr>
            <td>Relative</td>
            <td class="text-right"><%= trace.duration_percent %>%</td>
            <td class="text-right"><%= trace.allocations_percent %>%</td>
          </tr>
        </table>
      </section>

      <% if trace.backtrace %>
        <section class="popover-footer">
          <pre><%= trace.backtrace %></pre>
        </section>
      <% end %>
    </div>
  </div>
</li>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_mini_profiler-0.5.0 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0.4.0 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0.3.0 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0.2.1 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0.2.0 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0.1.3 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0.1.2 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0.1.1 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
rails_mini_profiler-0.1.0 app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb