public class ProfilingAspect extends AbstractProfilingAspect
ProfilingReportTemplate for
storing the collected data.
<aop:config proxy-target-class="true">
<aop:aspect id="serviceLayerProfilerAspect" ref="defaultProfiler">
<aop:pointcut id="profiledMethods" expression="execution(* de.hybris.platform.servicelayer..*.*(..))" />
<aop:around pointcut-ref="profiledMethods" method="basicProfiling" />
</aop:aspect>
</aop:config>
<bean id="defaultProfiler" class="de.hybris.platform.aop.ProfilingAspect" scope="tenant">
<property name="report" ref="profilingReportBean" />
</bean>
Note:For changing the profiling behaviour, you have to modify the defined 'pointcut' for your needs.AbstractProfilingAspect.Accuracyaccuracy, aspectNodeName, domain, limit, template| Constructor and Description |
|---|
ProfilingAspect() |
| Modifier and Type | Method and Description |
|---|---|
protected Tenant |
getOwnTenant() |
java.lang.Object |
logExecutionTime(ProceedingJoinPoint pjp)
This methods will be called by the following sample AOP pointcut (core-profilig-spring.xml)
|
void |
setTenant(Tenant tenant) |
calculateExecutionTime, getAssembler, getOrCreateMBean, getOrCreateResource, getTime, logException, logExecutionTime, setAccuracy, setAspectNodeName, setAssembler, setDomain, setLimit, setTemplateprotected Tenant getOwnTenant()
getOwnTenant in class AbstractProfilingAspectpublic void setTenant(Tenant tenant)
public java.lang.Object logExecutionTime(ProceedingJoinPoint pjp)
throws java.lang.Throwable
<aop:pointcut id="profiledMethods" expression="execution(* de.hybris.platform.servicelayer..*.*(..))" /> <aop:around pointcut-ref="profiledMethods" method="logExecutionTime" />
pjp - pointcut infojava.lang.ThrowableCopyright © 2018 SAP SE. All Rights Reserved.