-
-
Save matthewmccullough/142636 to your computer and use it in GitHub Desktop.
A btrace script for watching all groovy methods
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
btrace { | |
templates { | |
// all methods within mydomain classes | |
methodTimerTemplate { | |
template = 'btrace-templates\\ManyMethodTimerTemplate.template' | |
targetClasses { | |
'/com\\\\.mydomain\\\\..+/' { | |
targetMethods = [ '/.+/' ] | |
} | |
} | |
} | |
// all mydomain getters and setters | |
accessorMethodTimerTemplate { | |
template = 'btrace-templates\\ManyMethodTimerTemplate.template' | |
targetClasses { | |
'/com\\\\.mydomain\\\\..+/' { | |
targetMethods = [ | |
'/get.*/', | |
'/set.*/' | |
] | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment