Package io.sentry
Interface IContinuousProfiler
- All Known Implementing Classes:
NoOpContinuousProfiler
@Internal
public interface IContinuousProfiler
Used for performing operations when a transaction is started or ended.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean isTerminating) Cancel the profiler and stops it.@NotNull SentryId
boolean
void
void
startProfiler
(@NotNull ProfileLifecycle profileLifecycle, @NotNull TracesSampler tracesSampler) void
stopProfiler
(@NotNull ProfileLifecycle profileLifecycle)
-
Method Details
-
isRunning
boolean isRunning() -
startProfiler
void startProfiler(@NotNull @NotNull ProfileLifecycle profileLifecycle, @NotNull @NotNull TracesSampler tracesSampler) -
stopProfiler
-
close
void close(boolean isTerminating) Cancel the profiler and stops it.- Parameters:
isTerminating
- whether the profiler is terminating and won't be restarted or not.
-
reevaluateSampling
void reevaluateSampling() -
getProfilerId
-