| Package | Description |
|---|---|
| net.obvj.performetrics |
Provides convenient classes for extracting performance metrics of Java code.
|
| net.obvj.performetrics.monitors |
Provides classes that can monitor other ones.
|
| Modifier and Type | Method and Description |
|---|---|
Counter.Type |
Counter.getType() |
static Counter.Type |
Counter.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Counter.Type[] |
Counter.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Stopwatch |
Stopwatch.createStarted(Counter.Type... types)
Provides a started stopwatch for convenience with specific counter types.
|
Duration |
Stopwatch.elapsedTime(Counter.Type type)
A convenient method that returns the elapsed time of a specific counter.
|
double |
Stopwatch.elapsedTime(Counter.Type type,
TimeUnit timeUnit)
A convenient method that returns the elapsed time of a specific counter, in the
specified time unit.
|
double |
Stopwatch.elapsedTime(Counter.Type type,
TimeUnit timeUnit,
ConversionMode conversionMode)
A convenient method that returns the elapsed time of a specific counter, in the
specified time unit, by applying a custom
ConversionMode. |
Counter |
Stopwatch.getCounter(Counter.Type type)
Returns the counter instance associated with a given type in this stopwatch.
|
| Constructor and Description |
|---|
Counter(Counter.Type type)
Builds a Counter with a given type and default time unit.
|
Counter(Counter.Type type,
TimeUnit timeUnit)
Builds a Counter with the given type and time unit.
|
Counter(Counter.Type type,
TimeUnit timeUnit,
ConversionMode conversionMode)
Builds a Counter with the given type, time unit, and conversion mode.
|
Stopwatch(Counter.Type... types)
Creates a new stopwatch with specific counter types.
|
| Constructor and Description |
|---|
MonitoredCallable(Callable<V> targetCallable,
Counter.Type... types)
Builds this monitored operation with a given
Callable and one or more specific
counter types to be maintained. |
MonitoredRunnable(Runnable targetRunnable,
Counter.Type... types)
Builds this monitored operation with a given
Runnable and one or more specific
counter types to be maintained. |
Copyright © 2020. All rights reserved.