Releases: dpsoft/ap-agent
v0.1.0 - First Release
Startup Banner
The banner currently only shows the current version of the agent and the AP-Loader
Hot/Cold FlameGraph Support(Mixed)
This type of visualization combines both on-CPU and off-CPU flame graphs. This visualization provides a comprehensive view of the performance data by showing all thread time in one graph and allowing direct comparisons between on-CPU and off-CPU code path durations. The hot and cold functions are shown together in the same graph, providing a clear and concise view of the performance of the program.
The darker colors indicate on-CPU and lighter colors indicate off-CPU
hotcold (http://localhost:8080/profiler/profile?event=wall&output=hotcold&duration=30)

All credit to @tetsuzawa as we rely on his work done at this PR
Firefox Profiler Support
Basic example with curl
- Execute the profiler for the
cpuevent,fp(Firefox Profiler) output, a60 secondsduration and write the response toprofiling_results/firefox-profiler-example.json.gz
curl -s "http://localhost:8080/profiler/profile?event=cpu&output=fp&duration=60" -o profiling_results/firefox-profiler-example.json.gz- Visit the Firefox Profiler page
- Load the output file from
step 1, and you'll see the profiling result
Profiling results
Call tree
Flame graph
Contributed by @lucasamoroso via #11
Availability in Maven Central
AP-Agent is now published in Maven Central, making it easy for developers to include it in their projects.
<dependency>
<groupId>io.github.dpsoft</groupId>
<artifactId>ap-agent</artifactId>
<version>0.1.0</version>
</dependency>
v0.0.1 - Snapshot Release
- Initial implementation with jfr, flamegraph, pprof output formats
- Go mode -> /debug/pprof/profile endpoint
Example:
1 - Just add ap-agent-1.0-SNAPSHOT.jar as javaagent -> java -javaagent:ap-agent-1.0-SNAPSHOT.jar
2- In a browserhttp://localhost:8080/profiler/profile?event=cpu&output=flame&duration=10
3- Enjoy:




