Last active
December 16, 2015 20:11
-
-
Save ishults/10558478 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final String START_TIME = 'Hibernate_Start_Time' | |
def filters = { | |
logHibernateStats(controller: '*', action: '*') { | |
before = { | |
request[START_TIME] = System.currentTimeMillis() | |
} | |
afterView = { | |
Long end = System.currentTimeMillis() | |
Long start = request[START_TIME] | |
log.info "Total time: ${end - start} ms" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment