Record Trace During App Startup

Lynx Trace supports recording trace during the app startup process, which is essential for analyzing and optimizing app's start performance.

1. Click Startup Trace Configuration

In the topbar, click the Startup Trace Configuration.

Startup Trace Configuration

2. Set duration (seconds)

Enter the desired duration for recording trace during app startup. Press the Enter key to save your configuration.

Startup Trace Duration

3. Restart application

Close and relaunch your app. Lynx Trace will automatically record trace during the startup period.

4. Load startup trace

After the app launches, choose target app, then click the Load Trace in Lynx Devtool.

Load Startup Trace

5. View the startup trace

Once the trace data has loaded, you will see a visualization of the app’s startup process for detailed analysis.

Load Startup Trace Success

FAQ

After clicking Load Trace shows: "Startup tracing is not enabled, cannot pull trace data"
  • Make sure to set a valid trace duration (greater than 0) in Startup Trace Configuration, then restart the app and click "Load Trace" again.
  • Ensure a Lynx page is opened during or after the app startup process before clicking "Load Trace".
Clicking Load Trace shows: "Startup tracing is in progress, please try again later"
  • The app startup trace is still being recorded. Please wait for the process to finish and try clicking "Load Trace" again later.
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.