Package 

Class SpanFrameMetricsCollector

    • Method Summary

      Modifier and Type Method Description
      void onSpanStarted(@NotNull() ISpan span)
      void onSpanFinished(@NotNull() ISpan span)
      void clear()
      void onFrameMetricCollected(long frameStartNanos, long frameEndNanos, long durationNanos, long delayNanos, boolean isSlow, boolean isFrozen, float refreshRate) Called when a frame is collected.
      • Methods inherited from class io.sentry.IPerformanceContinuousCollector

        clear, onSpanFinished, onSpanStarted
      • Methods inherited from class io.sentry.android.core.internal.util.SentryFrameMetricsCollector.FrameMetricsCollectorListener

        onFrameMetricCollected
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onFrameMetricCollected

         void onFrameMetricCollected(long frameStartNanos, long frameEndNanos, long durationNanos, long delayNanos, boolean isSlow, boolean isFrozen, float refreshRate)

        Called when a frame is collected.

        Parameters:
        frameStartNanos - Start timestamp of a frame in nanoseconds relative toSystem.nanotime().
        frameEndNanos - End timestamp of a frame in nanoseconds relative to System.nanotime().
        durationNanos - Duration in nanoseconds of the time spent from the cpu on the mainthread to create the frame.
        delayNanos - the frame delay, in nanoseconds.
        isSlow - True if the frame is considered slow, rendering taking longer than therefresh-rate based budget, false otherwise.
        isFrozen - True if the frame is considered frozen, rendering taking longer than 700ms,false otherwise.
        refreshRate - the last known refresh rate when the frame was rendered.