Skip to content

Instantly share code, notes, and snippets.

@matthewmccullough
Forked from rhyolight/gist:142053
Created July 8, 2009 06:46
Show Gist options
  • Save matthewmccullough/142636 to your computer and use it in GitHub Desktop.
Save matthewmccullough/142636 to your computer and use it in GitHub Desktop.
A btrace script for watching all groovy methods
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