Mini Profiler plugin
Dependency :
compile ":miniprofiler:0.1"
Summary
Shows timing and sql query information in a head-up display in a web page, useful for debugging database and other performance problems.
Installation
This plugin also requires the Profiler Plugin to be installed:You should then add the following to the bottom of any layouts that you would like to see the profiling information on, just inside the bottom of the html body:
plugins {
// etc
runtime ':profiler:0.4'
runtime ':miniprofiler:0.1'
}<!-- rest of layout above -->
<miniprofiler:javascript/>
</body>
</htmlDescription
This plugin adds a clickable overlay onto your website as per the Stack Exchange MiniProfiler. Your controller methods, views and service methods are all visible, and any SQL queries executed during each of those calls can be seen.See the talk from the Groovy & Grails Exchange 2012 which introduced the plugin here.
Known Issues
- At time of writing, the profiler plugin does not work with Grails 2.2, so the miniprofiler plugin has not yet been tested on Grails 2.2.
- At time of writing, the profiler plugin does not correctly wrap controller methods which are not closures, so controller methods may or may not appear correctly in the output.
- In Grails 2.0+, layout timing does not appear. This is being worked on.