Announcement Announcement Module
Collapse
No announcement yet.
Profiling every method exceution time using AOP ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Profiling every method exceution time using AOP ?

    Hello

    I'd like to figure out the execution time of every method being used in my service layers. Since I don't like the idea of calling my logger straight from my service, I do believe the "Before" and "After" concepts of AOP logging can help me, but I don't know if Spring bundles the required code to do this.

    Should I use AspectJ together with the Atlassian profiler (I've never used these tools), or is Spring already accessing my problem, and if so could anyone point me to the right direction ?

    Thanks

  • #2
    Check out PerformanceMonitorInterceptor.
    Rob

    Comment


    • #3
      Thanks Rob, but prior to seeing your answer I chose to use org.aopalliance.intercept.* utilities together with BeanNameAutoProxyCreator.

      PerformanceMonitorInterceptor looks cool tho.

      Comment

      Working...
      X