Sha256: b6aef153f98e740be7a19cf73879c9c0abc94fe0696220682542a510de3a571a
Contents?: true
Size: 961 Bytes
Versions: 2
Compression:
Stored size: 961 Bytes
Contents
<table class="table"> <thead> <tr> <th style="width: 33.33%;">Total Time</th> <th style="width: 33.33%;">Average Time</th> <th style="width: 33.33%;">Calls</th> </tr> </thead> <tbody> <% queries.each do |query| %> <tr> <td> <%= query["total_minutes"].to_f.round %> min <span class="percent"> <% percent = query["total_percent"].to_f %> <% if percent > 1 %> <%= percent.round %>% <% elsif percent > 0.1 %> <%= percent.round(1) %>% <% else %> < 0.1% <% end %> </span> </td> <td><%= query["average_time"].to_f.round %> ms</td> <td><%= number_with_delimiter(query["calls"].to_i) %></td> </tr> <tr> <td colspan="3" style="border-top: none; padding: 0;"><pre><%= query["query"] %></pre></td> </tr> <% end %> </tbody> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pghero-0.1.9 | app/views/pg_hero/home/_query_stats_table.html.erb |
pghero-0.1.8 | app/views/pg_hero/home/_query_stats_table.html.erb |