Sha256: afd26b2ec8d7904bcd817d107d80df9f2d2e0b6af5e832e94fc0711d3efbc7c5
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
<div class="icon_container"> <%= image_tag('speedup_rails/icons.png', alt: '', style: 'clip: rect(0, 40px, 20px, 20px); left: -20px;') %> </div> <span class="speedup_rails_<%= key %>" data-key="<%= key %>"> <%= data.count %> queries (<%= render_ms(data.sum{|t| t[:duration] }) %>) </span> <div class="additional_info"> <div class="queries"> <% data.each do |query| %> <div> <span class="duration <%= query[:duration] > 10 ? 'duration-warning' : 'duration-info' %>"><%= render_ms(query[:duration])%></span> <span class="query"><%= query[:query] %></span> <div class="backtrace"> <% query[:backtrace].each do |line| %> <span class="backtrace_line"><%= line %><br/></span> <% end %> </div> </div> <% end %> </div> </div> <script type="text/javascript"> var traces = document.getElementById("speedup_collectorinfo_<%= key %>").getElementsByClassName('backtrace') for (var j = traces.length - 1; j >= 0; j--) { traces[j].onclick = function() { var i; var x = this.getElementsByClassName("backtrace_line"); for (i = 0; i < x.length; i++) { x[i].style.display = "inline"; } }; }; </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
speedup-rails-0.0.9 | app/views/speedup_rails/collectors/_queries.html.erb |