Mini Profiler plugin

  • Tags: /
  • Latest: 0.4.1
  • Last Updated: 15 July 2014
  • Grails version: 1.3 > *
1 vote
Dependency:
compile ":miniprofiler:0.4.1"
Custom repositories:
mavenRepo "https://oss.sonatype.org/content/repositories/snapshots/"

 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.5'
    runtime ':miniprofiler:0.4.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 correctly wrap controller methods in Grails 2.x, so controller methods may or may not appear correctly in the output.
  • People using this plugin with the MogoDB plugin, and who are using transactional service with static transactional = 'mongo' should use the latest snapshot version of the profiler plugin, 0.6-SNAPSHOT rather than the 0.5 version.
  • Sitemesh layout timing is not available in Grails 2.4 in this version
This is very early code, all bug reports and suggestions very welcome!

Changelog

0.4.1

0.3

  • Split core functionality into miniprofiler-jvm project
  • Fix several bugs, including layout timing on Grails 2.2.x

0.2

  • Profile AJAX requests
  • Use log4jdbc from Maven Central, now that it's published there

0.1

  • Initial release