-
- 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()
synchronized void
startProfiler(@NotNull() ProfileLifecycle profileLifecycle, @NotNull() TracesSampler tracesSampler)
synchronized void
stopProfiler(@NotNull() ProfileLifecycle profileLifecycle)
synchronized void
reevaluateSampling()
synchronized void
close()
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
synchronized void startProfiler(@NotNull() ProfileLifecycle profileLifecycle, @NotNull() TracesSampler tracesSampler)
-
stopProfiler
synchronized void stopProfiler(@NotNull() ProfileLifecycle profileLifecycle)
-
reevaluateSampling
synchronized void reevaluateSampling()
-
close
synchronized void close()
-
onRateLimitChanged
void onRateLimitChanged(@NotNull() RateLimiter rateLimiter)
-
-
-
-