Query Stats
Query Stats is a Rails plugin to help track database queries. Rather than watching the logs with tail to judge performance, display the query count directly on your page footer.
Example:1 class ApplicationController < ActionController::Base 2 include QueryStats 3 end
1 <% if RAILS_ENV == "development" %> 2 Queries in Controller: <%= queries.count_with_label :controller %><br /> 3 Queries in View: <%= queries.count_with_label :view %><br /> 4 Query Runtime: <%= queries.total_time =><br /> 5 <% end %>
- Repository Path: http://query-stats.googlecode.com/svn/trunk/query_stats/
- Homepage: http://code.google.com/p/query-stats/
Tags
Currently tagged with:
You need to Login to tag this item.