Copyright Notice: This article from Fat Meow ~ blog, reprint must indicate the source.
Reprint Please specify source: http://www.cnblogs.com/by-dream/p/5943263.html
background our new version of the app for the first page of the list of "preload" function, that is, in the case of WiFi network, when sliding to the bottom of the first page of data, the app in the background automatically help you pull off a page of content, so that you do not appear when sliding "chrysanthemum" in the drop, The user experience is much better. However, for this modification, I am afraid that the new preload will affect the performance and cause the page to lag, so I decided to make a basic evaluation of FPS during the sliding of the list page.
Process we are using Xcode (Mac version 7.3) with instrument GPU driver for capture, let's look at how to use:First Right-click Xcode to select "Open Developer Tool"-"instruments"
After opening, we first need to select "Tested Device" and "app to evaluate" installed in the device at the top of the device bar, then select "GPU Driver" after completion:
At this time, we entered the GPU driver interface, the upper left corner of the red is the Start button, click on the start to collect data.
Here's a little bit of the pit: when using a jailbreak device, just click on the Red Start button and the phone will restart. The suspicion here is that the jailbreak is the reason.
In the process of acquisition, we can see real-time data:
Here we focus on the column is "core animation Frames per second", this value is up to 60, about nearly 60 the more fluent.
I used the iphone 6s Plus for nearly 60 of the test results in my evaluation, but I found a performance bottleneck when I was using iphone 4:
As we can see from the figure below, there is a noticeable lag in the slide-to-preload grams, resulting in a sudden decrease in frame rate. At this point we can give feedback on this performance problem to the development to solve.
Of course, we can also output some test equipment horizontally, compare the data before and after optimization, such as the following:
test model and version:Android: Beta version: Pre-loaded version (92_ANDROID.APK), non-preloaded version (88_ANDROID.APK) test model: High (Android 6.0 Nexus 5), Medium (an Droid 4.4.4 Oppo A31), Low (Android 4.0.43 Star gt-s7562) IOS: Beta version: Pre-loaded version (3315_SIGN.IPA), not preloaded version (32 90_SIGN.IPA) test model: High (iOS 9 iphone6sp), Medium (iOS 8 iphone5s), Low (iOS 7 iPhone4)
test result data:
This is not more intuitive and clear.
"iOS test" "essay" Frame rate fps evaluation