Android Fluency Test

Source: Internet
Author: User

Android Fluency Test
    • Test method One: System comes with - developer mode
    • Test method Two:FPS Meter test Android Frame number
    • H5 page loading speed:window.performance.timing
test method One: System comes with-developer mode

In fact, in order to facilitate the developer testing, Android itself has built-in the smoothness of the detection function. However, this requires us to turn on the hidden developer option. If you are using the native system, then the developer option is simple, go to the Settings menu "about the phone " page, click several times "version number", you can open the developer options. If the use of other Rom, the method may be different, such as Meizu FlyMe to open the developer option is the dial-up interface input "*#* #6961 #*#*", other machine methods are different, you can refer to the manufacturer's instructions.

Enter the developer options, you can see the "GPU Rendering mode Analysis" option, open to the bar and line graph method to display the system's interface response speed, can be used to observe the system smoothness. So how do you determine if the system is smooth according to the curve? In fact, this curve expresses the time that the GPU draws each frame interface, as long as it does not exceed the top green line, and can be considered smooth enough.

Turn on GPU rendering mode analysis

As long as the below curve does not exceed the green line, it can be regarded as smooth

The advantages of using the system to test fluency are many, first of all, the data is accurate, the system must know its own frame rate, followed by the non-accounting resources, the impact of the smoothness test is relatively small. So is this method foolproof? In fact, there are some shortcomings. For example, using the CPU rendering UI of the app interface, will not be able to get the test results (of course, these interfaces almost without exception, not test and know not fluent); When the system pauses, such as micro-Boga loading pictures, the response speed will increase sharply, the curve instantly break through the green line-this situation can not say not smooth, Because this is the content and interface of the response mechanism, if the light curve whether to break through the green line to determine whether smooth, it is too limited.

1. Turn on GPU rendering mode analysis in Settings. Click "Settings", "Developer Options" on your Android device, then tick "GPU display profile".

2.1. Click "Settings" and "Developer Options" on your Android device, then tick "GPU display profile". Restart our app. After starting the app, swipe on the app's page

2.lijiedemacbook-air:~ lijie$ adb shell Dumpsys gfxinfo com.dianping.v1>fps.txt

3. Open the generated fps.txt to find the data in this section.

4. In order to see more directly, we can put the data into Excel and then view it in the form of a chart.

5. It can be seen that the smoothness of my application is very low, the normal frame rate should be around 16ms, if 1 seconds 60 frames, and execute time is too long! So it needs to be optimized.

Reviews APP:

A: "Draw": the time overhead of creating a display list (displays lists, which records the drawing instructions for all view objects).

B: "Process": Executes the time when the instruction is drawn in the display list. The more view number in the UI window, the more drawing commands you need to execute.

C: "Execute": the time to give a frame image to the synthesizer compostior. This part usually takes less time.

test Method Two:FPS Meter test Android frame Count

FPS Meter is a very useful little software that can display the Android interface in real-time with a number of frames per second, very intuitive. In addition, the FPS meter can display maximum frames, minimum frames, and average frames, to evaluate the value of Android fluency. Because of the system functionality involved, FPS meter requires root. If you intend to try it, please use it before the root machine.

software name:

fps display (fps Meter)

software version:

1.5

Software size:

218KB

Software Authorization:

free

applicable platform:

Android

:

/http dl.pconline.com.cn/download/76451.html

The use of FPS meter is simple, start the service after opening the app. Within the app, you can choose where the number of frames is displayed, and whether to turn on average frames, minimum/maximum frame count display. When the service is turned on, you can see that there are frames displayed on the interface. It is important to note that the use of FPS meter to measure the number of frames requires that the HW overlay be deactivated in the developer options to be more accurate.

FPS Meter can display the maximum minimum number of frames and the average number of frames

FPS Meter can test the number of interface frames, but some phones have a 0 frame count if the interface is still stationary. FPS meter can also be used to measure the number of frames in a game , in addition to measuring the number of frames in the system, so it is a good choice to use FPS meter to test the performance of a Andro game .

Of course, FPS Meter is not perfect either. Because they belong to third-party apps, there may be some compatibility issues. Some Andro or ROM use FPS meter may be incompatible, even if the number of frames successfully turned on display can not measure the exact value, and some devices use FPS meter even panic. But in most cases, the app is pretty trustworthy.

 Android has improved its fluency through new technologies in multiple versions, such as Android 2.3 Introduction to Dalvik, Android 4.0 introducing GPU interface drawing, Android 4.1 Introducing butter program, Android 4.3 introducing trim, and Android 4.4 introducing art and more.

H5 page loading speed: window.performance.timing

Android above test method not applicable H5 page

How to analyze the overall page load speed:

The main point is to view the indicator Value paget_ page load time, this indicator refers to the overall page load time but not (onload events and redirect), this indicator value can directly reflect the user experience, from this indicator can know the specified time period of the page load speed value, as well as days, weeks, Months of comparison. You can also query the indicator allt_ page full load time, you can query to start navigation from the browser (user click on the link or in the Address bar to enter a URL or point refresh, Back button) to the page onload event JS completely run all the time. If you find that the page loading speed has increased or decreased, You can query each metric value in the previous table by sub-item, in general their relationship is as follows:

Before the DOM starts loading all time = Redirect Time + domain name resolution time + time to establish connection spend + request time + take time to receive data

Pageloadtime page Load time = Domain Name resolution Time + time spent + Request time + Receive data spend time + parse dom spend time + load DOM take time

Allloadtime page Full load time = Redirect Time + domain name resolution Time + time spent + Request time + Receive data spend time + parse dom spend time + load dom spend time + Execute onload event takes time

Resourcesloadedtime Resource Load time = Parse dom takes time + load DOM takes time

Fluency has not found a useful test measurement tool, development level understanding, mainly based on log analysis

Android Fluency Test

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.