Most of JMH can be configured using annotations and it is pretty convenient to run from the IDE. However I have not seen a option to configure the profiler using an annotation. Is there such an annotation? Using the CLI it is easy; java -jar target/benchmarks -prof <someprofiler> ...