MINOR: Update jmh for async profiler 2.0 support (#10800)

Async profiler 2.0 outputs html5 flame graph files
and supports simultaneous collection of cpu,
allocation and lock profiles in jfr format.

Updated the readme to include an example of the
latter and verified that the Readme commands
work with async profiler 2.0.

Release notes:
* 1.28: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-March/003171.html
* 1.29: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-March/003218.html
* 1.30: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-May/003237.html
* 1.31: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-May/003286.html
* 1.32: https://mail.openjdk.java.net/pipermail/jmh-dev/2021-May/003307.html

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, David Jacot <djacot@confluent.io>, Luke Chen <showuon@gmail.com>
This commit is contained in:
Ismael Juma 2021-06-02 05:55:01 -07:00 committed by GitHub
parent 1a7ad70f24
commit 8b71604c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -71,7 +71,7 @@ versions += [
jetty: "9.4.39.v20210325", jetty: "9.4.39.v20210325",
jersey: "2.34", jersey: "2.34",
jline: "3.12.1", jline: "3.12.1",
jmh: "1.27", jmh: "1.32",
hamcrest: "2.2", hamcrest: "2.2",
log4j: "1.2.17", log4j: "1.2.17",
scalaLogging: "3.9.3", scalaLogging: "3.9.3",

View File

@ -45,6 +45,11 @@ With flame graph output (the semicolon is escaped to ensure it is not treated as
./jmh-benchmarks/jmh.sh -prof async:libPath=/path/to/libasyncProfiler.so\;output=flamegraph ./jmh-benchmarks/jmh.sh -prof async:libPath=/path/to/libasyncProfiler.so\;output=flamegraph
Simultaneous cpu, allocation and lock profiling with async profiler 2.0 and jfr output (the semicolon is
escaped to ensure it is not treated as a command separator):
./jmh-benchmarks/jmh.sh -prof async:libPath=/path/to/libasyncProfiler.so\;output=jfr\;alloc\;lock LRUCacheBenchmark
A number of arguments can be passed to configure async profiler, run the following for a description: A number of arguments can be passed to configure async profiler, run the following for a description:
./jmh-benchmarks/jmh.sh -prof async:help ./jmh-benchmarks/jmh.sh -prof async:help