RFR: 7904047: JMH: support async-profiler 4.0 options [v2]
Aleksey Shipilev
shade at openjdk.org
Wed Jun 25 10:25:49 UTC 2025
On Wed, 25 Jun 2025 01:21:15 GMT, Andrei Pangin <apangin at openjdk.org> wrote:
>> 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.
>
> Andrei Pangin has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
>
> 7904047: JMH: support async-profiler 4.0 options
On the other hand, we also have GHA check here: https://github.com/openjdk/jmh/blob/872b7203c294d90c17766d19fc9f71cea5885380/.github/workflows/pre-integration.yml#L65-L69 -- which apparently shows this code works with 3.0. I assume 4.0 is the recommended version? If so, bump GHA check to pick up 4.0.
-------------
PR Comment: https://git.openjdk.org/jmh/pull/159#issuecomment-3004243955
More information about the jmh-dev
mailing list