-
public interface Profiling
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classProfiling.NoOp
-
Method Summary
Modifier and Type Method Description ProfilingScopenewScope()Stateful API which restores the previous context when closed. ProfilingContextAttributecreateContextAttribute(String attribute)Creates a decorator for the attribute, which can be used to set and clear contexts slightlymore efficiently than with string attributes. -
-
Method Detail
-
newScope
ProfilingScope newScope()
Stateful API which restores the previous context when closed. This requires more memory so hashigher overhead than the stateless API.
-
createContextAttribute
ProfilingContextAttribute createContextAttribute(String attribute)
Creates a decorator for the attribute, which can be used to set and clear contexts slightlymore efficiently than with string attributes.
- Parameters:
attribute- the name of the attribute
-
-
-
-