Package org.perf4j.aop

Provides annotations that work with an aspect-oriented framework like AspectJ or Spring AOP to allow timing of code blocks without explicit logging statements.

See:
          Description

Class Summary
AbstractTimingAspect This is the base class for TimingAspects.
 

Annotation Types Summary
Profiled The Profiled annotation is used in concert with the log4j or javalog TimingAspects to enable unobtrusive performance logging.
 

Package org.perf4j.aop Description

Provides annotations that work with an aspect-oriented framework like AspectJ or Spring AOP to allow timing of code blocks without explicit logging statements. The Profiled annotation can be added to method declarations to indicate that method execution should be timed, e.g.:

 @Profiled(tag = "servlet{$0.pathInfo}")
 protected void doGet(HttpServletRequest req, HttpServletResponse res) {
 ...
 }
 
Timing code can then be enabled using the concrete subclasses of AbstractTimingAspect, such as the log4j TimingAspect. You will need to use an aspect framework such as AspectJ or Spring AOP to enable these aspects.

See Also:
The Perf4J Developer Guide AOP Overview, ajc, the AspectJ compiler/weaver, Load-Time Weaving with AspectJ, Spring AOP


Copyright © 2008 perf4j.org. All Rights Reserved.