Package 

Class SlowFramesConfiguration


  • 
    public final class SlowFramesConfiguration
    
                        

    The SlowFramesListener provides various statistics to assist in identifying UI performance issues:

    • slowFrames: A list of records containing the timestamp and duration of frames where users experience jank frames within the given view.

    • slowFrameRate: The rate of slow frames encountered during the view's lifetime.

    • freezeRate: The rate of freeze occurrences during the view's lifetime.

    This class defines thresholds for frame duration to classify frames based on their duration type.

    • Constructor Detail

      • SlowFramesConfiguration

        SlowFramesConfiguration(Integer maxSlowFramesAmount, Long maxSlowFrameThresholdNs, Long continuousSlowFrameThresholdNs, Long freezeDurationThresholdNs, Long minViewLifetimeThresholdNs)
        Parameters:
        maxSlowFramesAmount - The maximum number of slow frame records to track for each view.
        maxSlowFrameThresholdNs - The threshold (in nanoseconds) used to classify a frame as slow.
        continuousSlowFrameThresholdNs - The threshold (in nanoseconds) used to classify a frame as continuously slow.
        freezeDurationThresholdNs - The duration (in nanoseconds) used to classify a frame as a freeze frame.
        minViewLifetimeThresholdNs - The minimum lifetime (in nanoseconds) a view must have before it is considered for monitoring.