This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
The following commit(s) were added to refs/heads/main by this push:
new 2cb8e18 Add flight recorder recording
2cb8e18 is described below
commit 2cb8e1876622ff0ec826fd1cfbe40cbfc82845fd
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jul 28 13:38:54 2021 +0200
Add flight recorder recording
---
profiling/timer-log/pom.xml | 4 ++++
profiling/timer-log/src/main/resources/application.properties | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/profiling/timer-log/pom.xml b/profiling/timer-log/pom.xml
index 4ae27ef..578ff16 100644
--- a/profiling/timer-log/pom.xml
+++ b/profiling/timer-log/pom.xml
@@ -62,6 +62,10 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-log</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-jfr</artifactId>
+ </dependency>
<!-- logging -->
<dependency>
diff --git a/profiling/timer-log/src/main/resources/application.properties
b/profiling/timer-log/src/main/resources/application.properties
index 52a6c20..82c2c3c 100644
--- a/profiling/timer-log/src/main/resources/application.properties
+++ b/profiling/timer-log/src/main/resources/application.properties
@@ -32,5 +32,10 @@ camel.main.exchange-factory-statistics-enabled = true
camel.main.duration-max-seconds = 130
+# turn on java flight recorder
+camel.main.startup-recorder = jfr
+camel.main.startup-recorder-profile = profile
+camel.main.startup-recorder-recording = true
+
# properties used in the route
myPeriod = 1