Class SlowRenderingInstrumentation
-
- All Implemented Interfaces:
-
io.opentelemetry.android.instrumentation.AndroidInstrumentation
@AutoService(value = {AndroidInstrumentation.class}) public final class SlowRenderingInstrumentation implements AndroidInstrumentationEntrypoint for installing the slow rendering detection instrumentation.
-
-
Constructor Summary
Constructors Constructor Description SlowRenderingInstrumentation()
-
Method Summary
Modifier and Type Method Description StringgetName()final SlowRenderingInstrumentationsetSlowRenderingDetectionPollInterval(Duration interval)Configures the rate at which frame render durations are polled. final SlowRenderingInstrumentationenableVerboseDebugLogging()Call this to enable verbose debug logging when slow renders are detected. Unitinstall(Context context, OpenTelemetryRum openTelemetryRum)Unituninstall(Context context, OpenTelemetryRum openTelemetryRum)-
-
Method Detail
-
setSlowRenderingDetectionPollInterval
final SlowRenderingInstrumentation setSlowRenderingDetectionPollInterval(Duration interval)
Configures the rate at which frame render durations are polled.
- Parameters:
interval- The period that should be used for polling.- Returns:
this
-
enableVerboseDebugLogging
final SlowRenderingInstrumentation enableVerboseDebugLogging()
Call this to enable verbose debug logging when slow renders are detected.
-
-
-
-