Interface ProfilingAware
-
- All Known Implementing Classes:
GroupSideEffectStep
,GroupStep
public interface ProfilingAware
Marks aStep
as one that is aware of profiling. A good example of where this is important is withGroupStep
which needs to track and hold aBarrier
, which is important for theProfileStrategy
to know about. Once theProfileStep
is injected theBarrier
needs 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 theBarrier
will 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 class
ProfilingAware.ProfiledBarrier
A helper class which holds aBarrier
and it's relatedProfileStep
so that the latter can have its timer started and stopped appropriately.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
prepareForProfiling()
Prepares the step for any internal changes that might help ensure that profiling will work as expected.
-