From 9a558e24516de2edc3a3e9bfdef319dec58ba050 Mon Sep 17 00:00:00 2001 From: Johannes Bechberger Date: Thu, 4 Jan 2024 10:42:16 +0100 Subject: [PATCH] Link async-profiler and ap-loader in the README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3be897d..e37cf44 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,8 @@ Execute the following steps to run the challenge: ## Flamegraph/Profiling -A tip is that if you have [jbang](https://jbang.dev) installed, you can get a flamegraph of your program by running: +A tip is that if you have [jbang](https://jbang.dev) installed, you can get a flamegraph of your program by running +[async-profiler](https://github.com/jvm-profiling-tools/async-profiler) via [ap-loader](https://github.com/jvm-profiling-tools/ap-loader): `jbang --javaagent=ap-loader@jvm-profiling-tools/ap-loader=start,event=cpu,file=profile.html -m dev.morling.onebrc.CalculateAverage_yourname target/average-1.0.0-SNAPSHOT.jar`