How Android phones get page time-consuming data for an app (command-line mode)

Source: Internet
Author: User

How Android phones get page time-consuming data for an app (command-line mode)


  1. Please install BusyBox on the phone, it is used to simulate various commands under the Linux system, such as Cp\grep ...

    If you don't do step 1, you'll be in trouble later. Anyway I was tangled up all afternoon.

2. The phone must be root, can obtain SU permission;

3. Enter cmd and input adb shell;

4. Enter Su;

5. Enter command logcat |grep packagename |grep Displayed to print time-consuming data for the corresponding page;

6. The printed log can be processed again;




Note:

Huawei Mobile Phone cannot print the log under the ADB shell Logcat, the following prompts:

Note:log switch off, only Log_main and log_events would have logs!

Workaround:

Mobile phone dial *#* #2846579 #*#*, enter projectmenu--background settings--log set--log switch--open;


How Android phones get page time-consuming data for an app (command-line mode)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.