| 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.
|
| Modifier and Type | Method and Description |
|---|---|
ConversionMode |
Counter.getConversionMode() |
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)
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. |
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.
|
Copyright © 2020. All rights reserved.