Perf4J

Clarify documentation to state that using Spring AOP means that methods called by Spring beans themselves won't be timed

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 0.9.7
  • Fix Version/s: 0.9.8
  • Component/s: Perf4J base
  • Labels:
    None
  • Environment:
    all
  • Number of attachments :
    0

Description

If you have a Spring bean with a @Profiled methodA() that calls @Profiled methodB() directly, methodB() will NOT be timed when using Spring AOP (must use AspectJ directly for this). The reason for this is that Spring uses proxies for AOP, and if you don't go through the proxy to make the method call the advice won't get executed. I need to clarify this in the doc.

Activity

Hide
Alex Devine added a comment -

Added section to doc to clarify.

Show
Alex Devine added a comment - Added section to doc to clarify.

People

Vote (0)
Watch (0)

Dates

  • Due:
    Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1h
Original Estimate - 1 hour
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
1h
Time Spent - 1 hour