All Products
Search
Document Center

Performance log

Last Updated: Jan 19, 2021

Performance logs include:

  • Startup time log
  • Lag log
  • Stuck log

To view performance data, you can:

  • Log in to the mPaaS console and choose Mobile Analysis Service > Basic analysis to view the startup time report.
  • Log in to the mPaaS console and choose Mobile Analysis Service > Performance analysis to view lag report and stuck report.

Tracking

Startup time

 
  1. MPLogger.reportLaunchTime(Context context);
Note:
  • Startup time of an App is about the seconds elapsed from the time the preceding method is called to the time the App begins to start.
  • It is recommended to call the preceding method in the onCreate() method of Activity for the home page.

Lag

A lag occurs if an Android main thread does not complete execution of a method within 2.25s.

To enable lag monitoring, the Activity must inherit the class BaseActivity, BaseFragmentActivity, or BaseAppCompatActivity of the mPaaS framework.

Note:
  • When an APK package is a debug package, all data is used for lag monitoring.
  • When an APK package is a release package, data sampled at a rate of 10% is used for lag monitoring.

Stuck

A stuck occurs when an Android main thread does not respond for more than 5s.

To enable stuck monitoring, the Activity must inherit the class BaseActivity, BaseFragmentActivity, or BaseAppCompatActivity of the mPaaS framework.