-
public class AppStartupTimeTrackerThis class is responsible for app startup tracking & measures the time since the earliest possible moment of the app's process creation till the app's first frame is drawn.
Startup time is measured according to the Google's definition of Cold App Startup Time
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceAppStartupTimeTracker.ListenerListener to be invoked when the app's startup time is ready
-
Field Summary
Fields Modifier and Type Field Description public final static AppStartupTimeTrackerINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitregister(Application application, AppStartupTimeTracker.Listener listener)Register a callback invoked when the app's cold startup time is obtained. -
-
Method Detail
-
register
final static Unit register(Application application, AppStartupTimeTracker.Listener listener)
Register a callback invoked when the app's cold startup time is obtained. The method must be called as early as possible from Application.onCreate.
- Parameters:
application- current Application instancelistener- callback to be invoked as soon as startup time is ready
-
-
-
-