Skip to content

Releases: dpsoft/ap-agent

v0.1.0 - First Release

08 Feb 04:04

Choose a tag to compare

Startup Banner

The banner currently only shows the current version of the agent and the AP-Loader

image

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)
image

All credit to @tetsuzawa as we rely on his work done at this PR

Firefox Profiler Support

Basic example with curl

  1. Execute the profiler for the cpu event, fp (Firefox Profiler) output, a 60 seconds duration and write the response to profiling_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
  1. Visit the Firefox Profiler page

Screenshot 2023-02-04 at 13 12 49

  1. Load the output file from step 1, and you'll see the profiling result

Profiling results

Call tree

image

Flame graph

image

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

23 Jan 22:41

Choose a tag to compare

Pre-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:

image