Mobile APM provides load time metrics to help you understand how long it takes for your mobile app screens to load. These load times are calculated by capturing start and end timestamps during specific lifecycle callbacks.
Formula:
Total load time = onActivityResumed - (onActivityCreated | onActivityStarted)
iOS
The Start Timestamp is captured in the first occurrence of any of the following lifecycle callbacks for every view controller loading in the application:
- loadView
- viewDidLoad
- viewWillAppear
The End Timestamp is captured in the following lifecycle callback:
- viewDidAppear
Formula:
Total load time = viewDidAppear - (loadView | viewDidLoad | viewWillAppear)
React Native
For React Native apps, load times can be captured using a custom API along with screen data. Detailed steps for screen tracking and obtaining load times are provided in this
help documentation.
Flutter
In Flutter apps, a custom API must be used to capture screen load times. Instructions on how to implement screen tracking for Flutter apps are provided in this
help documentation.