|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
MonitorSource producings stopwatches.Manager.
Split to the stopwatch which is useful for aggregation of splits created for other stopwatch.
Split.stop(String).
perform() method with benchmarked block of code.Bucket sample.BucketsMonitorSource.
Stopwatch as monitors.Callback interface so that it does nothing - intended for extension by simple (non-composite)
callbacks.Callback can hold more callbacks which allows to form callback trees where events are passed to
sub-callbacks.Counter instance - protected for subclasses.
Counter interface - see there for how to use Counter.CounterLogTemplate.isEnabled(Object) method.Counter.Counter.CounterImpl.toString() without state.
null if parameter is null.
StopwatchTimeRange object
Proxy class.UnsupportedOperationException.
UnsupportedOperationException.
null value is not an option.
Manager implementation that does nothing or returns null or NullSimon as expected
from manager in disabled state.SimonUtils.doWithStopwatch(String, java.util.concurrent.Callable) instead).
UnsupportedOperationException.
UnsupportedOperationException.
Manager in the enabled state.Executor
or ExecutorService but simpler (only one method
to implement).Executors.AsyncCallbackExecutors.Buckets.Callback adding filtering capabilities.Delegating.getDelegate() method
Samples.
Samples.
null if no attribute of
the given name exists.
null if no attribute of
the given name exists.
null.
null.
null if no attribute of
the given name exists.
null if no attribute of
the given name exists.
toString.
toString.
toString.
Simon.reset() method on the Simon.
LastSplits object from Simon attributes.
CallTreeCallback.callTreeLogTemplate is a SplitThresholdLogTemplate.
Manager used as a real source of monitors.
null).
null).
SimonUtils.millisForNano(long).
LoggingCallback.stopwatchLogTemplate.
Split.runningFor().
'stopwatch' or 'counter' strings.
ObjectName.
System.currentTimeMillis() at a particular time, when SimonUtils.INIT_NANOS is initialized as well.
System.nanoTime() at a particular time, when SimonUtils.INIT_MILLIS is initialized as well.
CallTreeCallback.callTreeLogTemplate with a SplitThresholdLogTemplate.
Split.start().
Split.stop() has not been called yet).
Logger.Buckets
For 100-600 range and 5 bucket count, the following buckets are created:
Index
MinMax
Samples
Counter
0
-∞100
53
# (1)
1
100200
128,136
## (2)
2
200300
245,231,264,287,275
###### (5)
3
300400
356,341
## (2)
4
400500
461
# (1)
5
500600
801
# (1)
6
600+∞
(0)
For a total of 12 splits in this example, we can deduce that
Median (6th sample) is in bucket #2
Third quartile (9th sample) is in bucket #3
90% percentile (10,8th sample) is in bucket #4 or #5 (but assume #4).LogTemplates.Callback.
Callback.
System.currentTimeMillis().
SimonUtils.NAME_PATTERN.
Manager.getCounter(String).Manager.getSimon(String)
or Manager.getRootSimon().NullSimon.INSTANCE.
Manager.getStopwatch(String).QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample).
QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample).
QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample).
Simon implementations, with
the SimonManager as the center point of the API.Monitored.Callback is an event listener registered with the Manager,
listening for manager or Simon events.CallTreeCallback gathers information
for current thread and displays it subsequent calls like a tree.LastSplitsCallback retains last
splits in a ring a buffer (fixed size FIFO queue).LoggingCallback is able to log stopwatch splits and statistics once
in a while (N per millisecond, every N split, when split is longer than N ms, etc.)QuantilesCallback sorts splits to categories
(Buckets) based on time ranges.MonitorSource is the interface used as function to transform execution context (method invocation,
HTTP request...) into a Simon.Simon.reset() on the
Simon and recursively on all its children.
from regex as pattern and its Replacer.process(java.lang.String) method than returns
string with all from replaced with to.Callback.onSimonReset(Simon).
StopwatchSample array with measured results.
perform() and measures the run using the Stopwatch named in the constructor.
Simon.sample() and Simon.sampleAndReset() methods.Samples.Replacer.process(String) calls
reflecting this change immediatelly.
SimonManagerMXBean).Manager.Manager.AbstractSimon.toString() except for the state missing in the output.
SimonInfo.COUNTER,
SimonInfo.STOPWATCH or SimonInfo.UNKNOWN.
Logger.Logger and Marker.
Stopwatch ("anonymous split").
Stopwatch instance - protected for subclasses.
Stopwatch interface - see there for how to use Stopwatch.Stopwatch.Stopwatch.Stopwatch as the monitor type.Stopwatch state on a
rolling period of time.StopwatchImpl.toString() without state.
Manager implementation that supports SwitchingManager.enable() and SwitchingManager.disable() and switches between
backing EnabledManager and DisabledManager accordingly.Samples.
Null Simon.
Unknown Simon and basic information for the Simon as a human readable string.
UnknownSimons.System.currentTimeMillis() if client code already has
current nano timer value.
Callback.
Callback.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||