Package com.flurry.android
Class FlurryPerformance
java.lang.Object
com.flurry.android.FlurryPerformance
The Flurry Performance metrics allow you to measure and understand how your app performs
on the range of devices.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
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 NONEFlag to disable all performance metrics. -
COLD_START
public static int COLD_STARTFlag to enable Cold Start performance metrics. -
SCREEN_TIME
public static int SCREEN_TIMEFlag to enable Screen Time performance metrics. -
ALL
public static int ALLFlag 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 toActivity.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.
-