Sha256: 576def7f8e1f266f7816c4832a1452a8a8193859479631667c417832ef0dc7c1
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 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_<%= request_id %>_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
4 entries across 4 versions & 1 rubygems