Understanding Mobile APM Load Times for Android, iOS, React Native, and Flutter

How to calculate Mobile APM screen load times

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. 

Load times for native agents will be sent to our server automatically by subtracting the start timestamp from the end timestamp, i.e., end-start.

The following sections explain how load times are calculated across different platforms.

Android

The Start Timestamp is captured in the first occurrence of any of the following lifecycle callbacks for every screen loading in the application:
  1. onActivityCreated
  2. onActivityStarted
The End Timestamp is captured in the following lifecycle callback:
  1. onActivityResumed
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:
  1. loadView
  2. viewDidLoad
  3. viewWillAppear

The End Timestamp is captured in the following lifecycle callback:
  1. 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.

    • Related Articles

    • How to identify and resolve conflicts between other APM products and the APM Insight .NET agent

      Problem statement: You are experiencing either of the below issues and suspect that another APM product is interfering with the Site24x7 .NET agent. 1. The .NET monitor is not created under APM > APM Insight > Applications, even after the .NET agent ...
    • Steps to troubleshoot if you see "NO Data" in the Node VM tab

      Problem statement: You are getting No Data under the garbage collection and event loop graphs such as GC Pause Time, GC Pause Frequency, and Event Loop Ticks Per Minute. Prerequisite: The Node.js agent version should be 3.0.0 or higher. Solution: The ...
    • APM Insight integration for Next.js in Kubernetes

      To integrate the Site24x7 APM Insight Next.js agent into your Kubernetes application using initContainers with the prebuilt agent image, follow the steps below: Prerequisites A Next.js application container image The Site24x7 APM Insight license key ...
    • How to calculate the 95th percentile

      The 95th percentile is a standard statistical measurement used to interpret performance data, particularly in traffic generation on an interface. It represents the value below which 95% of the data points fall, effectively ignoring the highest 5% of ...
    • Device/Licence Key

      Device Key is a unique and secure alphanumeric key that can be accessed by logging in and navigating to Admin > Developer > Device Key. It is an authentication mechanism where the Site24x7 agent pushes the performance metrics to site24x7.com to ...