| 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.
|
| net.obvj.performetrics.util |
Provides utility classes in general.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
Counter.elapsedTime()
Returns the elapsed time.
|
Duration |
Stopwatch.elapsedTime(Counter.Type type)
Returns the total elapsed time for a specific counter.
|
Duration |
TimingSession.elapsedTime(Counter.Type type)
A convenient method that returns the elapsed time of a specific counter.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
MonitoredOperation.elapsedTime(Counter.Type type)
Returns the total elapsed time of a specific counter type.
|
| Modifier and Type | Field and Description |
|---|---|
static Duration |
Duration.ZERO |
| Modifier and Type | Method and Description |
|---|---|
static Duration |
DurationUtils.average(Collection<Duration> durations)
Computes and returns the mean Duration of the given collection of Durations.
|
Duration |
Duration.dividedBy(long divisor)
Returns a copy of this duration divided by the specified value.
|
static Duration |
DurationUtils.max(Collection<Duration> durations)
Computes and returns the highest/maximum Duration of the given collection of Durations.
|
static Duration |
DurationUtils.min(Collection<Duration> durations)
Computes and returns the lowest/minimum Duration of the given collection of Durations.
|
static Duration |
Duration.of(long amount,
TimeUnit timeUnit)
Obtains a
Duration representing an amount in the specified time unit. |
Duration |
Duration.plus(Duration duration)
Returns a copy of this duration with the specified duration added.
|
Duration |
Duration.plus(long amount,
TimeUnit timeUnit)
Returns a copy of this duration with the specified duration added.
|
static Duration |
Duration.sum(Duration duration1,
Duration duration2)
Returns the sum of two durations.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
DurationFormatter.format(Duration duration)
Returns a string representation of the given
Duration using default format. |
abstract String |
DurationFormat.format(Duration duration,
boolean printLegend)
Formats a given duration.
|
static String |
DurationFormatter.format(Duration duration,
DurationFormat format)
Returns a string representation of the given
Duration with a specific format. |
static String |
DurationFormatter.format(Duration duration,
DurationFormat format,
boolean printLegend)
Returns a string representation of the given
Duration with a specific format. |
Duration |
Duration.plus(Duration duration)
Returns a copy of this duration with the specified duration added.
|
static Duration |
Duration.sum(Duration duration1,
Duration duration2)
Returns the sum of two durations.
|
| Modifier and Type | Method and Description |
|---|---|
static Duration |
DurationUtils.average(Collection<Duration> durations)
Computes and returns the mean Duration of the given collection of Durations.
|
static Duration |
DurationUtils.max(Collection<Duration> durations)
Computes and returns the highest/maximum Duration of the given collection of Durations.
|
static Duration |
DurationUtils.min(Collection<Duration> durations)
Computes and returns the lowest/minimum Duration of the given collection of Durations.
|
Copyright © 2021. All rights reserved.