| Package | Description |
|---|---|
| net.obvj.performetrics |
Provides convenient classes for extracting performance metrics of Java code.
|
| net.obvj.performetrics.config |
Provides classes to handle common configuration parameters used by Performetrics.
|
| net.obvj.performetrics.monitors |
Provides classes that can monitor other ones.
|
| Modifier and Type | Method and Description |
|---|---|
ConversionMode |
Counter.getConversionMode()
Returns the
ConversionMode associated with this counter. |
static ConversionMode |
ConversionMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConversionMode[] |
ConversionMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Stopwatch.elapsedTime(Counter.Type type,
TimeUnit timeUnit,
ConversionMode conversionMode)
Returns the total elapsed time for a specific counter, in the specified time unit, with
a custom
ConversionMode applied. |
double |
TimingSession.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. |
double |
Counter.elapsedTime(TimeUnit timeUnit,
ConversionMode conversionMode)
Returns the elapsed time, in a given
TimeUnit, with a custom
ConversionMode. |
double |
Stopwatch.elapsedTime(TimeUnit timeUnit,
ConversionMode conversionMode)
Returns the total elapsed time in the specified time unit for a single counter type,
provided that this stopwatch is keeping a single type.
|
static void |
Performetrics.setDefaultConversionMode(ConversionMode conversionMode)
Sets a conversion mode to be applied by supported operations if no specific mode is
set.
|
| Constructor and Description |
|---|
Counter(Counter.Type type,
TimeUnit timeUnit,
ConversionMode conversionMode)
Builds a Counter with the given type, time unit, and conversion mode.
|
| Modifier and Type | Method and Description |
|---|---|
ConversionMode |
Configuration.getConversionMode()
Returns the conversion mode applied in supported operations if no specific mode is set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Configuration.setConversionMode(ConversionMode conversionMode)
Defines the default conversion mode to be applied in supported operations if no
specific mode is set.
|
| Modifier and Type | Method and Description |
|---|---|
double |
MonitoredOperation.elapsedTime(Counter.Type type,
TimeUnit timeUnit,
ConversionMode conversionMode)
Returns the total elapsed time of a specific counter, in the specified time unit, with
a custom
ConversionMode applied. |
double |
MonitoredOperation.elapsedTime(TimeUnit timeUnit,
ConversionMode conversionMode)
Returns the total elapsed time in the specified time unit for a single counter type,
provided that this monitor is keeping a single type.
|
Copyright © 2022. All rights reserved.