Class FlurryPerformance

java.lang.Object
com.flurry.android.FlurryPerformance

public class FlurryPerformance extends Object
The Flurry Performance metrics allow you to measure and understand how your app performs on the range of devices.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Use Event Listeners supported in okhttp3: provide an HttpEventListener for Flurry that users can add for their OkHttpClient.
    static class 
    Use Interceptors supported in okhttp3: provide an HttpInterceptor for Flurry that users can add for their OkHttpClient.
    static class 
    Provide a HttpLogger class that users can create before connection, then log event after.
    static class 
    Provide a ResourceLogger class that users can create before profiled codes start, then log event after finished.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
    Flag to enable all performance metrics.
    static int
    Flag to enable Cold Start performance metrics.
    static int
    Flag to disable all performance metrics.
    static final String
    Performance enable/disable flags for Flurry Config.
    static int
    Flag to enable Screen Time performance metrics.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Report to the Flurry Cold Start metrics that your app is now fully drawn.
    static void
    Report to the Flurry Cold Start metrics that your app is now launched.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PERFORMANCE_CONFIG_FLAGS

      public static final String PERFORMANCE_CONFIG_FLAGS
      Performance enable/disable flags for Flurry Config. Cold Start and Screen Time cannot be disabled remotely. { "Flurry_PerformanceFlags", "Resource|HTTP" }
      See Also:
    • NONE

      public static int NONE
      Flag to disable all performance metrics.
    • COLD_START

      public static int COLD_START
      Flag to enable Cold Start performance metrics.
    • SCREEN_TIME

      public static int SCREEN_TIME
      Flag to enable Screen Time performance metrics.
    • ALL

      public static int ALL
      Flag to enable all performance metrics.
  • Constructor Details

    • FlurryPerformance

      public FlurryPerformance()
  • Method Details

    • reportFullyDrawn

      public static void reportFullyDrawn()
      Report to the Flurry Cold Start metrics that your app is now fully drawn. This is only used to help measuring application launch times, so that the app can report when it is fully in a usable state similar to Activity.reportFullyDrawn().
    • reportLaunched

      public static void reportLaunched()
      Report to the Flurry Cold Start metrics that your app is now launched. Use this method only when your app is not really "started" when it becomes alive. E.g., Your app is launched by the platform in the background mode. the Cold Start timer is also started. However, you want to measure the time when the first Activity starts and comes to the foreground. In that case, you can call this method when you use Intent to trigger your first Activity. Note: Make sure it's been called before the first Activity started. Otherwise it will be ignored.