Skip to content

Commit

Permalink
Merge pull request #45275 from quarkusio/gsmet-patch-1
Browse files Browse the repository at this point in the history
TROUBLESHOOTING.md - Fix formatting issue in TIP and move it a bit
  • Loading branch information
geoand authored Dec 30, 2024
2 parents ed9bb15 + a8eee92 commit c1dda6a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ Stop the application with `CTRL+C` once you have gathered what you want (e.g. ju
It will dump the profiling information.
The name of the file is in the `file=` parameter.

For the allocation case, you obtain a JFR file, you can convert it to your typical Async Profiler flamegraph HTML output with:

```shell script
java -cp ${PATH_TO_ASYNC_PROFILER}/lib/converter.jar jfr2flame startup-alloc-profile.jfr --alloc --total startup-alloc-profile.html
```

> [!TIP]
> You can avoid needing to stop the application manually by writing a custom main that stops the application once it boots up
>
Expand All @@ -156,13 +162,7 @@ The name of the file is in the `file=` parameter.
> }
> }
> }
```
For the allocation case, you obtain a JFR file, you can convert it to your typical Async Profiler flamegraph HTML output with:

```shell script
java -cp ${PATH_TO_ASYNC_PROFILER}/lib/converter.jar jfr2flame startup-alloc-profile.jfr --alloc --total startup-alloc-profile.html
```
> ```
Note that short options are not supported inside the agent, you need to use their long versions.
Expand Down

0 comments on commit c1dda6a

Please sign in to comment.