Mini Profiler plugin

  • Tags : /
  • Latest : 0.1
  • Last Updated: 22 December 2012
  • Grails version : 1.3 > *
1 vote
Dependency :
compile ":miniprofiler:0.1"

Documentation Source Issues

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:

plugins {
    // etc
    runtime ':profiler:0.4'
    runtime ':miniprofiler:0.1'
  }

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:

<!-- rest of layout above -->
    <miniprofiler:javascript/>
  </body>
</html

Description

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.
This is very early code, all bug reports and suggestions very welcome!