RFR: 7904047: JMH: support async-profiler 4.0 options
Andrei Pangin
apangin at openjdk.org
Wed Jun 25 01:12:01 UTC 2025
JMH has built-in capability for running benchmarks with async-profiler. `-prof async` supports commonly used async-profiler options, however, these options became a bit outdated and don't reflect features appeared in async-profiler 3.0 and 4.0.
Async-profiler users [get confused](https://github.com/async-profiler/async-profiler/discussions/1345) why certain async-profiler options don't work with JMH.
This PR:
- updates async-profiler stack walking modes: `dwarf`, `vm`, `vmx`;
- adds native memory profiling option;
- adds OTLP output format;
- introduces `norm` and `lib` flags for tuning async-profiler frame names;
- fixes minor inaccuracies in option description.
-------------
Commit messages:
- Add async-profiler 4.0 options
Changes: https://git.openjdk.org/jmh/pull/159/files
Webrev: https://webrevs.openjdk.org/?repo=jmh&pr=159&range=00
Issue: https://bugs.openjdk.org/browse/CODETOOLS-7904047
Stats: 58 lines in 1 file changed: 38 ins; 10 del; 10 mod
Patch: https://git.openjdk.org/jmh/pull/159.diff
Fetch: git fetch https://git.openjdk.org/jmh.git pull/159/head:pull/159
PR: https://git.openjdk.org/jmh/pull/159
More information about the jmh-dev
mailing list