Package 

Interface InsightsCollector


  • 
    public interface InsightsCollector
    
                        

    Collects performance related events and notifies its listeners at a regular interval.

    • Method Detail

      • onNewView

         abstract Unit onNewView(String name)

        Notifies the collector that a new view has been created.

        Parameters:
        name - the name of the new view.
      • onAction

         abstract Unit onAction()

        Notifies the collector that a user action has been detected.

      • onLongTask

         abstract Unit onLongTask(Long durationNs)

        Notifies the collector that a long task has been detected.

        Parameters:
        durationNs - the duration of the long task, in nanoseconds.
      • onSlowFrame

         abstract Unit onSlowFrame(Long durationNs)

        Notifies the collector that a slow frame has been detected.

        Parameters:
        durationNs - the duration of the slow frame, in nanoseconds.
      • onNetworkRequest

         abstract Unit onNetworkRequest(Long durationNs)

        Notifies the collector that a network request has been detected.

        Parameters:
        durationNs - the duration of the network request, in nanoseconds.
      • onCpuVital

         abstract Unit onCpuVital(Double cpuTicks)

        Notifies the collector with the latest CPU vital value.

        Parameters:
        cpuTicks - the CPU ticks per second value.
      • onMemoryVital

         abstract Unit onMemoryVital(Double memoryValue)

        Notifies the collector with the latest Memory vital value.

        Parameters:
        memoryValue - the memory value in megabytes.
      • onSlowFrameRate

         abstract Unit onSlowFrameRate(Double rate)

        Notifies the collector with the latest Slow Frame Rate vital value.

        Parameters:
        rate - the slow frame rate value.
      • getMaxSize

         abstract Integer getMaxSize()

        Maximum number of events stored in memory.

      • getUpdateIntervalMs

         abstract Long getUpdateIntervalMs()

        Time interval in milliseconds at which the listeners will be notified of data updates.

      • setUpdateIntervalMs

         abstract Unit setUpdateIntervalMs(Long updateIntervalMs)

        Time interval in milliseconds at which the listeners will be notified of data updates.