Skip to content

Commit

Permalink
feat: add ctimer event type
Browse files Browse the repository at this point in the history
  • Loading branch information
korniltsev committed Feb 6, 2024
1 parent 135f1f5 commit 2609142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions agent/src/main/java/io/pyroscope/javaagent/EventType.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public enum EventType {
ALLOC (Events.ALLOC, Units.OBJECTS, AggregationType.SUM),
LOCK (Events.LOCK, Units.SAMPLES, AggregationType.SUM),
WALL (Events.WALL, Units.SAMPLES, AggregationType.SUM),
CTIMER (Events.CTIMER, Units.SAMPLES, AggregationType.SUM),
ITIMER (Events.ITIMER, Units.SAMPLES, AggregationType.SUM);

/**
Expand Down
2 changes: 2 additions & 0 deletions demo/src/main/java/App.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io.pyroscope.http.Format;
import io.pyroscope.javaagent.EventType;
import io.pyroscope.javaagent.PyroscopeAgent;
import io.pyroscope.javaagent.api.Logger;
import io.pyroscope.javaagent.config.Config;
Expand All @@ -20,6 +21,7 @@ public static void main(String[] args) {
.setApplicationName("demo.app{qweqwe=asdasd}")
.setServerAddress("http://localhost:4040")
.setFormat(Format.JFR)
.setProfilingEvent(EventType.CTIMER)
.setLogLevel(Logger.Level.DEBUG)
.setLabels(mapOf("user", "tolyan"))
.build())
Expand Down

0 comments on commit 2609142

Please sign in to comment.