public class StackProfilerStrategy extends Object implements ProfilerStrategy
Timers by default.| Constructor and Description |
|---|
StackProfilerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.slf4j.Logger |
getLogger() |
void |
onRequestEnd()
Method that is called to signal that the request has completed.
|
void |
setConfiguration(ProfilerConfiguration configuration)
Method that is called when the strategy is
registered. |
void |
setLogger(org.slf4j.Logger logger) |
Ticker |
start(String name)
Called to mark the end of a profiled block of code.
|
public org.slf4j.Logger getLogger()
public void onRequestEnd()
ProfilerStrategyclosing
any tickers that have not yet been closed.onRequestEnd in interface ProfilerStrategypublic void setConfiguration(@Nonnull ProfilerConfiguration configuration)
ProfilerStrategyregistered.setConfiguration in interface ProfilerStrategyconfiguration - the configurationpublic void setLogger(org.slf4j.Logger logger)
@Nonnull public Ticker start(@Nonnull String name)
ProfilerStrategystart in interface ProfilerStrategyname - name describing the profiled block of codeticker that can be used to mark the end of the profiled code
block. Must be non-null, but can be Ticker.NO_OP if the strategy opts out of profiling.Copyright © 2019 Atlassian. All rights reserved.