Skip to content

Instantly share code, notes, and snippets.

@rhyolight
Created July 7, 2009 12:45
Show Gist options
  • Save rhyolight/142053 to your computer and use it in GitHub Desktop.
Save rhyolight/142053 to your computer and use it in GitHub Desktop.
Config for a groovy script that transforms this into a btrace java source file
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