This is an automated email from the ASF dual-hosted git repository.
gitgabrio pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-benchmarks.git
The following commit(s) were added to refs/heads/main by this push:
new d87fca61 [NO_ISSUE] Extend documentation of Flamegraphs generation
(#293)
d87fca61 is described below
commit d87fca616f716d8fc0d08590bfcced6341baff59
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Mon May 26 15:59:30 2025 +0200
[NO_ISSUE] Extend documentation of Flamegraphs generation (#293)
Co-authored-by: Gabriele-Cardosi <[email protected]>
---
drools-benchmarks-parent/drools-benchmarks/README.md | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drools-benchmarks-parent/drools-benchmarks/README.md
b/drools-benchmarks-parent/drools-benchmarks/README.md
index ebe76662..b3ad400d 100644
--- a/drools-benchmarks-parent/drools-benchmarks/README.md
+++ b/drools-benchmarks-parent/drools-benchmarks/README.md
@@ -45,6 +45,11 @@ Flamegraph Generation
[async-profiler](https://github.com/async-profiler/async-profiler) is a tool
that, on the other side, create the flame-graphs files out of a running java
process.
+
+There are two possible approaches
+
+#### External connect of async profiler
+
The overall idea is to:
1. start benchmarks
2. attach async-profiler to running benchmarks to generate flamegraph file
@@ -72,6 +77,14 @@ asprof -d 30 -f flamegraph.html <PID>
3. -i: sampling interval; default to 10ms, but better to set it to 1ms
+#### Run JMH with async profiler
+A different approach could be to use the async profiler directly inside the
benchmark execution.
+Command is simply something like:
+
+```bash
+java -jar target/drools-benchmarks.jar -jvmArgs "-Xms24g -Xmx24g" -foe true
-rf csv -rff results.csv -prof async:output=flamegraph
org.drools.benchmarks.dmn.runtime.DMNEvaluateDecisionTableBenchmark
+```
+Flamegraphs will be generated inside a folder whose name depends on the
benchmark executed
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]