File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sentry/src/main/java/io/sentry/util Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,14 @@ public static IProfileConverter initializeProfileConverter(@NotNull SentryOption
108108 }
109109
110110 private static boolean shouldInitializeProfiler (@ NotNull SentryOptions options ) {
111- return options .isContinuousProfilingEnabled ()
111+ return Platform .isJvm ()
112+ && options .isContinuousProfilingEnabled ()
112113 && options .getContinuousProfiler () instanceof NoOpContinuousProfiler ;
113114 }
114115
115116 private static boolean shouldInitializeProfileConverter (@ NotNull SentryOptions options ) {
116- return options .isContinuousProfilingEnabled ()
117+ return Platform .isJvm ()
118+ && options .isContinuousProfilingEnabled ()
117119 && options .getProfilerConverter () instanceof NoOpProfileConverter ;
118120 }
119121
You can’t perform that action at this time.
0 commit comments