Package | Description |
---|---|
org.javasimon |
Core package, contains
Simon implementations, with
the SimonManager as the center point of the API. |
org.javasimon.callback | |
org.javasimon.callback.calltree |
CallTreeCallback gathers information
for current thread and displays it subsequent calls like a tree. |
org.javasimon.callback.lastsplits |
LastSplitsCallback retains last
splits in a ring a buffer (fixed size FIFO queue). |
org.javasimon.callback.logging |
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.)
and to various outputs (SLF4J, JUL). |
org.javasimon.callback.quantiles |
QuantilesCallback sorts splits to categories
(Bucket s) based on time ranges. |
org.javasimon.callback.timeline | |
org.javasimon.javaee |
Java EE support for Simons contains Java EE components (servlet filter and EJB/CDI interceptor) that can be used or extended.
|
org.javasimon.jmx |
JMX capabilities for Simons.
|
org.javasimon.source |
MonitorSource is the interface used as function to transform execution context (method invocation,
HTTP request...) into a Simon. |
org.javasimon.utils |
Java Simon supporting utilities and tools.
|
Modifier and Type | Method and Description |
---|---|
Stopwatch |
Stopwatch.addSplit(Split split)
Adds
Split to the stopwatch which is useful for aggregation of splits created for other stopwatch. |
Stopwatch |
Split.getStopwatch()
Returns the stopwatch that this split is running for.
|
Stopwatch |
SwitchingManager.getStopwatch(String name) |
static Stopwatch |
SimonManager.getStopwatch(String name)
Returns existing Stopwatch or creates new if necessary.
|
Stopwatch |
Manager.getStopwatch(String name)
Returns existing Stopwatch or creates new if necessary.
|
Stopwatch |
EnabledManager.getStopwatch(String name) |
Stopwatch |
DisabledManager.getStopwatch(String name)
Returns "Null Stopwatch" that always returns empty/null values and cannot measure anything.
|
Modifier and Type | Method and Description |
---|---|
void |
CompositeFilterCallback.onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample) |
void |
CompositeCallbackImpl.onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample) |
void |
CallbackSkeleton.onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample) |
void |
Callback.onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample)
Stopwatch add split event.
|
Modifier and Type | Method and Description |
---|---|
static CallTree |
CallTreeCallback.getLastCallTree(Stopwatch stopwatch)
Returns last call tree stored in stopwatch attributes.
|
Modifier and Type | Method and Description |
---|---|
protected LogTemplate<Split> |
LastSplitsCallback.createLogTemplate(Stopwatch stopwatch)
Create log template for given stopwatch.
|
void |
LastSplitsCallback.onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample) |
Modifier and Type | Method and Description |
---|---|
protected LogTemplate<Split> |
LoggingCallback.getStopwatchLogTemplate(Stopwatch stopwatch)
Get log template for stopwatch, defaults to
LoggingCallback.stopwatchLogTemplate . |
Modifier and Type | Method and Description |
---|---|
protected abstract Buckets |
QuantilesCallback.createBuckets(Stopwatch stopwatch)
Create Buckets for given stopwatch.
|
protected Buckets |
PropertiesQuantilesCallback.createBuckets(Stopwatch stopwatch)
Create buckets using callback attributes.
|
protected Buckets |
FixedQuantilesCallback.createBuckets(Stopwatch stopwatch)
Create buckets using callback attributes
|
protected Buckets |
AutoQuantilesCallback.createBuckets(Stopwatch stopwatch)
When warmup ends, buckets are create and retained splits are sorted in the buckets.
|
protected Buckets |
QuantilesCallback.createBuckets(Stopwatch stopwatch,
long min,
long max,
int bucketNb)
Factory method to create a Buckets object using given configuration.
|
abstract Buckets |
BucketsType.createBuckets(Stopwatch stopwatch,
long min,
long max,
int bucketNb)
Factory method to create
Buckets . |
protected Buckets |
AutoQuantilesCallback.createBucketsAfterWarmup(Stopwatch stopwatch)
Create the buckets after warmup time.
|
protected LogTemplate<Split> |
QuantilesCallback.createLogTemplate(Stopwatch stopwatch)
Create log template for given stopwatch.
|
static Buckets |
QuantilesCallback.getBuckets(Stopwatch stopwatch)
Returns the buckets attribute.
|
protected Buckets |
QuantilesCallback.getOrCreateBuckets(Stopwatch stopwatch)
Returns the buckets attribute or create it if it does not exist.
|
void |
QuantilesCallback.onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample)
When a split is added, if buckets have been initialized, the value is added to appropriate bucket.
|
protected void |
QuantilesCallback.onStopwatchSplit(Stopwatch stopwatch,
Split split)
Called when there is a new split on a Stopwatch, either
QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample) . |
protected void |
AutoQuantilesCallback.onStopwatchSplit(Stopwatch stopwatch,
Split split)
Called when there is a new split on a Stopwatch, either
QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample) . |
static BucketsSample |
QuantilesCallback.sampleBuckets(Stopwatch stopwatch)
Returns the buckets attribute and sample them.
|
Modifier and Type | Method and Description |
---|---|
void |
TimelineCallback.onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample) |
Modifier and Type | Method and Description |
---|---|
Stopwatch |
HttpStopwatchSource.getMonitor(javax.servlet.http.HttpServletRequest request)
Get a stopwatch for given HTTP request.
|
Modifier and Type | Field and Description |
---|---|
protected Stopwatch |
StopwatchMXBeanImpl.stopwatch
Wrapped
Stopwatch instance - protected for subclasses. |
Constructor and Description |
---|
StopwatchMXBeanImpl(Stopwatch stopwatch)
Creates the MX bean for the provided Stopwatch.
|
Modifier and Type | Method and Description |
---|---|
Stopwatch |
DisabledStopwatchSource.getMonitor(L location) |
Stopwatch |
AbstractStopwatchSource.getMonitor(T location)
Provide a Stopwatch for given location.
|
Modifier and Type | Method and Description |
---|---|
void |
SystemDebugCallback.onStopwatchAdd(Stopwatch stopwatch,
Split split,
StopwatchSample sample) |
Copyright © 2019. All rights reserved.