-
- All Implemented Interfaces:
-
io.sentry.IContinuousProfiler
,io.sentry.transport.RateLimiter.IRateLimitObserver
@ApiStatus.Internal() public class AndroidContinuousProfiler implements IContinuousProfiler, RateLimiter.IRateLimitObserver
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isRunning
private SentryId
profilerId
private int
rootSpanCounter
-
Constructor Summary
Constructors Constructor Description AndroidContinuousProfiler(BuildInfoProvider buildInfoProvider, SentryFrameMetricsCollector frameMetricsCollector, ILogger logger, String profilingTracesDirPath, int profilingTracesHz, ISentryExecutorService executorService)
-
Method Summary
Modifier and Type Method Description boolean
isRunning()
SentryId
getProfilerId()
int
getRootSpanCounter()
void
startProfiler(@NotNull() ProfileLifecycle profileLifecycle, @NotNull() TracesSampler tracesSampler)
void
stopProfiler(@NotNull() ProfileLifecycle profileLifecycle)
void
reevaluateSampling()
void
close(boolean isTerminating)
void
onRateLimitChanged(@NotNull() RateLimiter rateLimiter)
-
Methods inherited from class io.sentry.IContinuousProfiler
close, getProfilerId, isRunning, reevaluateSampling, startProfiler, stopProfiler
-
Methods inherited from class io.sentry.transport.RateLimiter.IRateLimitObserver
onRateLimitChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AndroidContinuousProfiler
AndroidContinuousProfiler(BuildInfoProvider buildInfoProvider, SentryFrameMetricsCollector frameMetricsCollector, ILogger logger, String profilingTracesDirPath, int profilingTracesHz, ISentryExecutorService executorService)
-
-
Method Detail
-
isRunning
boolean isRunning()
-
getProfilerId
@NotNull() SentryId getProfilerId()
-
getRootSpanCounter
@VisibleForTesting() int getRootSpanCounter()
-
startProfiler
void startProfiler(@NotNull() ProfileLifecycle profileLifecycle, @NotNull() TracesSampler tracesSampler)
-
stopProfiler
void stopProfiler(@NotNull() ProfileLifecycle profileLifecycle)
-
reevaluateSampling
void reevaluateSampling()
-
close
void close(boolean isTerminating)
-
onRateLimitChanged
void onRateLimitChanged(@NotNull() RateLimiter rateLimiter)
-
-
-
-