Interface ProfilerStrategy
- All Known Implementing Classes:
StackProfilerStrategy
@Internal
public interface ProfilerStrategy
Strategy for profiling code blocks, to be used with
Timers.- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidMethod that is called to signal that the request has completed.voidsetConfiguration(ProfilerConfiguration configuration) Method that is called when the strategy isregistered.Called to mark the end of a profiled block of code.
-
Method Details
-
onRequestEnd
default void onRequestEnd() -
setConfiguration
Method that is called when the strategy isregistered.- Parameters:
configuration- the configuration
-
start
Called to mark the end of a profiled block of code.- Parameters:
frameName- name describing the profiled block of code- Returns:
- a
tickerthat can be used tomarkthe end of the profiled code block. Must be non-null, but can beTicker.NO_OPif the strategy opts out of profiling.
-