org.slf4j.profiler
public class Profiler extends Object implements TimeInstrument
Constructor Summary | |
---|---|
Profiler(String name) |
Method Summary | |
---|---|
long | elapsedTime() |
List<TimeInstrument> | getCopyOfChildTimeInstruments()
Return a copy of the child instrument list for this Profiler instance.
|
StopWatch | getCopyOfGlobalStopWatch()
Return a copy of the global stopwath of this Profiler instance.
|
Logger | getLogger() |
String | getName() |
ProfilerRegistry | getProfilerRegistry() |
TimeInstrumentStatus | getStatus() |
void | log() |
void | print() |
void | registerWith(ProfilerRegistry profilerRegistry) |
void | setLogger(Logger logger) |
void | start(String name)
Starts a child stop watch and stops any previously started time
instruments. |
Profiler | startNested(String name) |
TimeInstrument | stop() |
Returns: a copy of this instance's child time instrument list
Since: 1.5.9
Returns: a copy of this instance's global stop watch
Since: 1.5.9