![]() |
![]()
| ![]() |
![]()
NAMEJifty::Plugin::SQLQueries - Inspect your application's SQL queries DESCRIPTIONThis plugin will log each SQL query, its duration, its bind parameters, and its stack trace. Such reports are available at: http://your.app/__jifty/admin/requests USAGEAdd the following to your site_config.yml framework: Plugins: - SQLQueries: {} You can turn on and off the stacktrace, as well as an "EXPLAIN" of each query, using options to the plugin: framework: Plugins: - SQLQueries: stacktrace: 0 explain: 1 The plugin defaults to logging the stack trace, but not the explain. METHODSinitSets up a "post_init" hook. inspect_before_requestClears the query log so we don't log any unrelated previous queries. inspect_after_requestStash the query log. inspect_render_summaryDisplay how many queries and their total time. inspect_render_analysisRender a template with all the detailed information. post_initTells Jifty::DBI to log queries in a way that records stack traces. prereq_pluginsThis plugin depends on Jifty::Plugin::RequestInspector. COPYRIGHT AND LICENSECopyright 2007-2010 Best Practical Solutions This is free software and may be modified and distributed under the same terms as Perl itself.
|