|
Groovy 1.7.9 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.BenchmarkInterceptor
public class BenchmarkInterceptor extends Object
Interceptor that registers the timestamp of each method call before and after invocation.
Field Summary | |
---|---|
protected Map |
calls
|
Method Summary | |
---|---|
Object
|
afterInvoke(Object object, String methodName, Object[] arguments, Object result)
|
Object
|
beforeInvoke(Object object, String methodName, Object[] arguments)
|
boolean
|
doInvoke()
|
Map
|
getCalls()
|
void
|
reset()
|
List
|
statistic()
@return a list of lines, each item is [methodname, numberOfCalls, accumulatedTime] |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected Map calls
Method Detail |
---|
public Object afterInvoke(Object object, String methodName, Object[] arguments, Object result)
public Object beforeInvoke(Object object, String methodName, Object[] arguments)
public boolean doInvoke()
public Map getCalls()
public void reset()
public List statistic()
Copyright © 2003-2010 The Codehaus. All rights reserved.