共有 0 个贴子
没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > database-counters |
database-counters
|
0 | 0 | 3 |
贡献者 | 讨论 | 代码提交 |
MOVEDMoved to http://github.com/mikedemers/database-counters/tree/master
Database CountersAdds two database counters to the log for a request:
total number of requests that were made total number of rows that were returned ExampleEnabling in a Controller:
class ApplicationController < ActionController::Base # ...
database_counters :on
Completed in 0.05835 (17 reqs/sec) | Rendering: 0.00007 (0%) | DB: 0.00265 (4%) Calls: 5 Rows: 6 | 200 OK [http://localhost/]Installationscript/plugin install http://database-counters.googlecode.com/svn/tags/current/database_counters