-
- 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 booleanisRunningprivate SentryIdprofilerIdprivate SentryIdchunkIdprivate introotSpanCounter
-
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 booleanisRunning()SentryIdgetProfilerId()SentryIdgetChunkId()intgetRootSpanCounter()voidstartProfiler(@NotNull() ProfileLifecycle profileLifecycle, @NotNull() TracesSampler tracesSampler)voidstopProfiler(@NotNull() ProfileLifecycle profileLifecycle)voidreevaluateSampling()voidclose(boolean isTerminating)voidonRateLimitChanged(@NotNull() RateLimiter rateLimiter)-
Methods inherited from class io.sentry.IContinuousProfiler
close, getChunkId, 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()
-
getChunkId
@NotNull() SentryId getChunkId()
-
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)
-
-
-
-