measure graphics performance on your iOS device
Source: http://www.cnblogs.com/chensheng12330/p/3947573.html
The widely used graphics app can make your app stand out from your competitors. But unless you use graphical resources responsibly, the application slows down and looks mediocre no matter how good the image you want to render.
Use the three trace template to discover the iOS graphics section of the profile application. Make sure that the frame rate is high enough that your image does not hinder the performance of your application.
measuring Core animation graphics performance
The instrument uses the core animation instrument to measure the graphics performance of your app on your iOS device. The core animation tracking template provides a fast, lightweight choice to measure the number of frames per second rendering application. The instrument is not intended to measure the performance of OpenGL ES. You can quickly see that your application framework renders less than expected. By associating what samples you are doing, you can identify your code and need to be improved.
put your interaction with the application and the results displayed in the tool. In the figure is a , you can see that the frame rate peak application becomes significantly better. Don't know what happened with the device at these spikes, it will be natural for you to replicate these higher frame rates throughout the application. However, these peaks are due to orientation changes when the device changes between landscape and normal orientation. Without knowing that a direction-changing device is going on, you may spend time trying to find out what led to a performance boost.
figure is a Core Animation Display frame rate Peak tracking template
The core animation contains several useful debugging options in the details pane. You don't need to run a trace in order to see these options work on your iOS device. Select the running process from the target pop-up menu.
color blending layer. shows the mixed view layer. Multiple view layers attract each other with the enabled blend highlighted in red. Reducing the red in your application by selecting this option can significantly improve application performance. The mixed view layer is often slow to cause table scrolling.
Color Popular works green and red. marks a green or red view. Think that you can use the cached rasterization in the green tag.
color to copy the image. The core animation that shows the image copied in blue.
immediate color. When selected, deletes a delay of 10 milliseconds when performing a color-flush operation.
color deviation of the image. The local magenta overlay is inconsistent in the image source pixel to the target pixel.
Color offscreen-rendered Yellow. Place a yellow covering in the private life of the content presented.
color OpenGL fast path blue. Place a blue cover in the content out of the typesetting workers.
Flash update area. The color area on your iOS device is updated in the yellow area of the graphics processor.
Measurement and OpenGL ES OpenGL activity Analysis Tracking Template
OpenGL ES Analysis Template measures and analyzes OpenGL ES activity in order to detect OpenGL ES correctness and performance issues. It also provides you with the recommended solution to the found problem. It includes OpenGL analyzers and OpenGL ES analysis instruments.
making recommendations for OpenGL ES Analyzer applications
Open the OpenGL ES iOS Group analysis template.
Click Pop-up to select the target and select your iOS device.
Click the popup for the second time to select the target and select the app analysis you want.
Tap the Record button to start recording data and exercise your OpenGL graphics code.
, click the Stop button to stop accumulating problems in the details pane.
The error details pane is listed, showing total occurrences, unique events, categories, summaries, and (leftmost) severity codes, either the most severe red Square, or an orange triangle so severe. When you select an error extension, the details pane provides suggestions on how to resolve the problem that is found.
discover bottlenecks with OpenGL ES driver tracking Templates
opengl ES driver tracking templates are also used to measure the performance of your application and to provide you with more information than just the number of frames per second that your application renders. The expanded details pane shows all the collected information as a specific example. Each statistic can also be displayed in the tracking OpenGL ES drive display panel by configuring specific statistics. For more information about the statistics provided, see   opengl es driver instrument instrument user reference  
figure to For more information about the Core animation sample
The bottleneck of OpenGL applications usually has two forms, a GPU bottleneck or a CPU bottleneck. GPU bottlenecks occur when the GPU forces CPU waits for more information to be processed. CPU bottlenecks typically occur in the GPU from information such as the CPU to process it. CPU bottlenecks can often create a better GPU flow of information by altering the logic of the underlying application. The bottlenecks that are shown below are the bottlenecks and a list of common symptoms:
Geometric limitations. Whether the surface utilization is high. If it is, then the vertex shader procedure.
pixels are limited. Whether the rendering utilization is high. If yes, then fragment shader process.
CPU limit. whether the tile maker and the utilization of the present is very low. If these two are very low, performance bottlenecks may not be in OpenGL code, you should look at the overall logic of your code.
Graphics performance test for iOS performance optimization