Class AppJankEvent
-
- All Implemented Interfaces:
-
io.opentelemetry.android.semconv.events.OpenTelemetryEvent
public final class AppJankEvent implements OpenTelemetryEvent
<p>This event indicates that the application has detected substandard UI rendering performance.</p> <p>Notes:</p> <p>Jank happens when the UI is rendered slowly enough for the user to experience some disruption or sluggishness.</p>
-
-
Field Summary
Fields Modifier and Type Field Description private final LongappJankFrameCountprivate final DoubleappJankPeriodprivate final DoubleappJankThreshold
-
Constructor Summary
Constructors Constructor Description AppJankEvent(Long appJankFrameCount, Double appJankPeriod, Double appJankThreshold)
-
Method Summary
Modifier and Type Method Description final LonggetAppJankFrameCount()<p>A number of frame renders that experienced jank.</p> <p>Notes:</p> <p>Depending on platform limitations, the value provided MAY be approximation.</p> final DoublegetAppJankPeriod()<p>The time period, in seconds, for which this jank is being reported.</p> final DoublegetAppJankThreshold()<p>The minimum rendering threshold for this jank, in seconds.</p> Unitemit(Logger logger, Attributes additionalAttributes)Emits this event through logger, including any additionalAttributes. -
-
Method Detail
-
getAppJankFrameCount
final Long getAppJankFrameCount()
<p>A number of frame renders that experienced jank.</p> <p>Notes:</p> <p>Depending on platform limitations, the value provided MAY be approximation.</p>
-
getAppJankPeriod
final Double getAppJankPeriod()
<p>The time period, in seconds, for which this jank is being reported.</p>
-
getAppJankThreshold
final Double getAppJankThreshold()
<p>The minimum rendering threshold for this jank, in seconds.</p>
-
emit
Unit emit(Logger logger, Attributes additionalAttributes)
Emits this event through logger, including any additionalAttributes.
-
-
-
-