You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sentry-async-profiler/api/sentry-async-profiler.api
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ public final class io/sentry/asyncprofiler/BuildConfig {
5
5
6
6
public final class io/sentry/asyncprofiler/convert/JfrAsyncProfilerToSentryProfileConverter : io/sentry/asyncprofiler/vendor/asyncprofiler/convert/JfrConverter {
7
7
public fun <init> (Lio/sentry/asyncprofiler/vendor/asyncprofiler/jfr/JfrReader;Lio/sentry/asyncprofiler/vendor/asyncprofiler/convert/Arguments;Lio/sentry/SentryStackTraceFactory;Lio/sentry/ILogger;)V
8
-
public static fun convertFromFileStatic (Ljava/nio/file/Path;)Lio/sentry/protocol/profiling/SentryProfile;
8
+
public static fun convertFromFileStatic (Ljava/lang/String;)Lio/sentry/protocol/profiling/SentryProfile;
9
9
}
10
10
11
11
public final class io/sentry/asyncprofiler/convert/NonAggregatingEventCollector : io/sentry/asyncprofiler/vendor/asyncprofiler/jfr/event/EventCollector {
@@ -41,7 +41,7 @@ public final class io/sentry/asyncprofiler/provider/AsyncProfilerProfileConverte
41
41
42
42
public final class io/sentry/asyncprofiler/provider/AsyncProfilerProfileConverterProvider$AsyncProfilerProfileConverter : io/sentry/IProfileConverter {
43
43
public fun <init> ()V
44
-
public fun convertFromFile (Ljava/nio/file/Path;)Lio/sentry/protocol/profiling/SentryProfile;
44
+
public fun convertFromFile (Ljava/lang/String;)Lio/sentry/protocol/profiling/SentryProfile;
45
45
}
46
46
47
47
public final class io/sentry/asyncprofiler/vendor/asyncprofiler/convert/Arguments {
Copy file name to clipboardExpand all lines: sentry-async-profiler/src/main/java/io/sentry/asyncprofiler/convert/JfrAsyncProfilerToSentryProfileConverter.java
Copy file name to clipboardExpand all lines: sentry-async-profiler/src/main/java/io/sentry/asyncprofiler/provider/AsyncProfilerProfileConverterProvider.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ public static final class AsyncProfilerProfileConverter implements IProfileConve
Copy file name to clipboardExpand all lines: sentry-async-profiler/src/test/java/io/sentry/asyncprofiler/convert/JfrAsyncProfilerToSentryProfileConverterTest.kt
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,6 @@ import java.time.LocalDateTime
17
17
importjava.time.ZoneOffset
18
18
importjava.time.temporal.ChronoUnit
19
19
importjava.util.*
20
-
importkotlin.io.path.Path
21
20
importkotlin.math.absoluteValue
22
21
importkotlin.test.AfterTest
23
22
importkotlin.test.BeforeTest
@@ -95,7 +94,7 @@ class JfrAsyncProfilerToSentryProfileConverterTest {
95
94
96
95
@Test
97
96
fun`check number of samples for specific frame`() {
98
-
val file =Path(loadFile("async_profiler_test_sample.jfr"))
97
+
val file = loadFile("async_profiler_test_sample.jfr")
99
98
100
99
val sentryProfile = fixture.getSut()!!.convertFromFile(file)
101
100
val tracingFilterFrame =
@@ -120,7 +119,7 @@ class JfrAsyncProfilerToSentryProfileConverterTest {
120
119
121
120
@Test
122
121
fun`check number of samples for specific thread`() {
123
-
val file =Path(loadFile("async_profiler_test_sample.jfr"))
122
+
val file = loadFile("async_profiler_test_sample.jfr")
124
123
125
124
val sentryProfile = fixture.getSut()!!.convertFromFile(file)
126
125
val mainThread =
@@ -138,7 +137,7 @@ class JfrAsyncProfilerToSentryProfileConverterTest {
138
137
139
138
@Test
140
139
fun`check no duplicate frames`() {
141
-
val file =Path(loadFile("async_profiler_test_sample.jfr"))
140
+
val file = loadFile("async_profiler_test_sample.jfr")
142
141
val sentryProfile = fixture.getSut()!!.convertFromFile(file)
143
142
144
143
val frameSet = sentryProfile.frames.toSet()
@@ -148,7 +147,7 @@ class JfrAsyncProfilerToSentryProfileConverterTest {
148
147
149
148
@Test
150
149
fun`convertFromFile with valid JFR returns populated SentryProfile`() {
151
-
val file =Path(loadFile("async_profiler_test_sample.jfr"))
150
+
val file = loadFile("async_profiler_test_sample.jfr")
152
151
153
152
val sentryProfile = fixture.getSut()!!.convertFromFile(file)
154
153
@@ -158,7 +157,7 @@ class JfrAsyncProfilerToSentryProfileConverterTest {
0 commit comments