Interface ProfilingAware
-
public interface ProfilingAwareMarks aStepas one that is aware of profiling. A good example of where this is important is withGroupStepwhich needs to track and hold aBarrier, which is important for theProfileStrategyto know about. Once theProfileStepis injected theBarrierneeds to be recalculated so that the timer can be properly started on the associatedProfileStep. Without that indirect start of the timer, the operation related to theBarrierwill not be properly accounted for and when metrics are normalized it is possible to end up with a negative timing.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProfilingAware.ProfiledBarrierA helper class which holds aBarrierand it's relatedProfileStepso that the latter can have its timer started and stopped appropriately.
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidprepareForProfiling()Deprecated.As of release 3.8.0, not directly replaced because a simple call toStep.reset()at traversal lock can more generally do what is needed by this much more specific API.
-
-
-
Method Detail
-
prepareForProfiling
@Deprecated default void prepareForProfiling()
Deprecated.As of release 3.8.0, not directly replaced because a simple call toStep.reset()at traversal lock can more generally do what is needed by this much more specific API.Prepares the step for any internal changes that might help ensure that profiling will work as expected.
-
-