I am trying to time the performance of code in package "com.company.somemodule" (has class R1, R2,..), as well as code in the subpackages,
- com.company.somemodule.subPackageA (has classes A1, A2,..)
- com.company.somemodule.subPackageB
I wrote the pointcut similar to the following. I am able to view the running time for classes A1, A2, but I am unable to view the running time for classes R1, R2, etc.
<bean id="timingAdvice"
class="org.springframework.aop.interceptor.PerformanceMonitorInterceptor" />
<aop:config>
<aop:advisor
pointcut="execution(* com.company.somemodule..*.*(..)) OR
execution(* com.company.somemodule.*.*(..))"
advice-ref="timingAdvice" />
</aop:config>
Please could anyone help? Thanks in advance.
P.S.: I have already tried following the suggestions posted here.