Package 

Interface SentryFrameMetricsCollector.FrameMetricsCollectorListener

    • Method Summary

      Modifier and Type Method Description
      abstract 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 java.lang.Object

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

      • onFrameMetricCollected

         abstract 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.