So I am trying to put some simple profiling in my methods. Here is what I have: <aop:aspectj-autoproxy /> <bean class="com.myclasses.Profiler"/>
@Aspect public class Profiler { @Pointcut("execution(* *(..)) && within(com.myclasses.*)") public void allMethods() {} @Around("allMethods()") public Object profile(ProceedingJoinPoint pjp) throws Throwable { long start = System.currentTimeMillis(); Object output = pjp.proceed(); long elapsedTime = System.currentTimeMillis() - start; System.out.println("Method execution time: " + elapsedTime + " milliseconds."); return output; } } problem is I am getting no output -- I confirmed that spring has loaded the pointcuts and beans. My other spring services are working in tapestry. The only thing I can think of is that maybe Tapestry's is using its own version of byte code generated classes. However none of my standalone (non tapestry 5 components, services, etc) classes are being profiled either. Anyone have any clue? Or perhaps suggest an alternative for profiling? thanks again in advance everyone! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry5-and-Spring-AOP-profiling-tp4899677p4899677.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org