static void |
BenchmarkUtils.addProfileInfo(java.util.Collection<ProfileDiagnostic> profileStages,
java.lang.String stage,
long nanos,
long memory) |
|
static java.lang.String |
BenchmarkUtils.formatExecutionStages(java.lang.Iterable<ProfileDiagnostic> profileInfo) |
|
static java.lang.String |
BenchmarkUtils.formatExecutionTimes(java.lang.Iterable<ProfileDiagnostic> profileInfo) |
|
static java.lang.String |
BenchmarkUtils.formatMemoryConsumption(java.lang.Iterable<ProfileDiagnostic> profileInfo,
ProfileDiagnostic.MemoryUnit units) |
|
static ProfileDiagnostic |
BenchmarkUtils.getProfileStageByName(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String stageName) |
Finds the stage for the given name.
|
static java.time.Duration |
BenchmarkUtils.getTotalExecutionTimeFrom(java.util.Collection<ProfileDiagnostic> profiledStages) |
Sums the execution times of the execution stages.
|
static long |
BenchmarkUtils.measureAndAddGCTime(java.util.Collection<ProfileDiagnostic> profileInfo) |
|
static void |
BenchmarkUtils.profileExecutionStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String description,
java.lang.Runnable code) |
|
static <T> void |
BenchmarkUtils.profileExecutionStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String description,
java.util.function.Consumer<T> code,
T argument) |
|
static <T,R> R |
BenchmarkUtils.profileExecutionStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String description,
java.util.function.Function<T,R> code,
T argument) |
|
static <R> R |
BenchmarkUtils.profileExecutionStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String description,
java.util.function.Supplier<R> code) |
|
static <T,E extends java.lang.Exception> void |
BenchmarkUtils.profileExecutionStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String description,
CheckedConsumer<T,E> code,
T argument) |
|
static <T,R,E extends java.lang.Exception> R |
BenchmarkUtils.profileExecutionStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String description,
CheckedFunction<T,R,E> code,
T argument) |
Creates a new ProfileDiagnostic and adds it to the collection of
profiled stages, measuring execution time and memory consumption.
|
static <E extends java.lang.Exception> void |
BenchmarkUtils.profileExecutionStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String description,
CheckedRunnable<E> code) |
|
static <R,E extends java.lang.Exception> R |
BenchmarkUtils.profileExecutionStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String description,
CheckedSupplier<R,E> code) |
|
static ProfileDiagnostic |
BenchmarkUtils.removeGCTimeFromStage(java.util.Collection<ProfileDiagnostic> profileInfo,
java.lang.String stageName) |
Performs a Runtime.gc() , takes into account the time taken to do so
and subtracts it from the given stage, identified by its name.
|