public final class BenchmarkFinder extends Object
JmhBenchmark
to run their benchmark methods.Constructor and Description |
---|
BenchmarkFinder(Class<?> clazz)
Class whose
ClassLoader will be used to search for benchmarks. |
Modifier and Type | Method and Description |
---|---|
void |
findBenchmarks(org.openjdk.jmh.runner.options.ChainedOptionsBuilder optionsBuilder)
Includes classes annotated with
JmhBenchmark as candidates for JMH benchmarks. |
public BenchmarkFinder(Class<?> clazz)
ClassLoader
will be used to search for benchmarks.clazz
- the class whose ClassLoader
will be used to search for benchmarks.public void findBenchmarks(org.openjdk.jmh.runner.options.ChainedOptionsBuilder optionsBuilder) throws IOException
JmhBenchmark
as candidates for JMH benchmarks.optionsBuilder
- the optionsBuilder used to build the benchmarksIOException
Copyright © 2004–2022. All rights reserved.