Skip to content

Commit bc2ab19

Browse files
committed
jfr api usage stub
1 parent 6a7a620 commit bc2ab19

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

exporters/otlp/profiles/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,10 @@ dependencies {
2727
testImplementation(project(":exporters:otlp:testing-internal"))
2828
testImplementation(project(":exporters:sender:okhttp"))
2929
testImplementation("io.grpc:grpc-stub")
30+
31+
tasks {
32+
withType(JavaCompile::class) {
33+
options.release.set(11)
34+
}
35+
}
3036
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package io.opentelemetry.exporter.otlp.profiles;
2+
3+
import jdk.jfr.consumer.RecordingFile;
4+
import java.io.File;
5+
import java.io.IOException;
6+
7+
public class JfrConverter {
8+
9+
public static void main(String[] args) throws IOException {
10+
11+
File jfrFile = new File(args[0]);
12+
RecordingFile recordingFile = new RecordingFile(jfrFile.toPath());
13+
14+
}
15+
}

0 commit comments

Comments
 (0)