public class ProfilerAspect extends Object
Profile
.
In order to get this to work, a bean of type ProfilerAspect
must be in the current Spring Application Context
and AOP must be enabled, e.g. Modifier and Type | Class and Description |
---|---|
static interface |
ProfilerAspect.Block<T> |
Constructor and Description |
---|
ProfilerAspect() |
Modifier and Type | Method and Description |
---|---|
static String |
humanReadable(long milliseconds)
Converts the input milliseconds in a human readable format (e.g.
|
Object |
logAroundByMethod(org.aspectj.lang.ProceedingJoinPoint joinPoint,
Profile profile) |
static <T> T |
wrapProfile(Class<?> clazz,
String signature,
ProfilerAspect.Block<T> block)
Sometimes adding an annotation may not work, e.g.
|
public Object logAroundByMethod(org.aspectj.lang.ProceedingJoinPoint joinPoint, Profile profile) throws Throwable
Throwable
public static <T> T wrapProfile(Class<?> clazz, String signature, ProfilerAspect.Block<T> block)
ProfilerAspect.Block
objectpublic static String humanReadable(long milliseconds)
milliseconds
- The ms to convertCopyright © 2021. All rights reserved.