Android M 上的配置文件 GPU 条的颜色
Colors of Profile GPU bars on Android M
将 Profile GPU 渲染开发人员功能设置为 "On screen as bars" 时,我曾在 Android Lollipop 上看到带有蓝色、紫色、红色和橙色的条,如 here 所述。
但是在 Android Marshmallow 上,这些条由七种不同的颜色组成:深绿色、中绿色、浅绿色、蓝色、浅蓝色、红色和橙色。
我没能在 Android 开发者网站上找到与这些颜色相关的任何信息。那么这些新颜色是什么意思?
不幸的是还没有官方文档,但是在 this Google+ post 一堆 Googlers 推荐了一个博客 post即 "really well written and details the changes".
引用http://blog.udinic.com/2015/09/15/speed-up-your-app的相关部分:
In Marshmallow, more colors were added to indicate more steps, such as
Measure/Layout, input handling and others:
EDIT 09/29/2015: John Reck, a framework engineer in Google, has added
this information about some of the new colors:
The exact definition of “animation” is everything that’s registered
with Choreographer as CALLBACK_ANIMATION. This includes
Choreographer#postFrameCallback and View#postOnAnimation which are
what’s used by view.animate(), ObjectAnimator, Transitions, etc… And
yup, it’s the same thing systrace labels as “animation”.
“misc” is the delay between the vsync’s timestamp and the current
timestamp when it was received. If you’ve ever seen logs from
Choreographer about “Missed vsync by blabla ms skipping blabla
frames”, that now shows up as “misc”. This is the difference between
INTENDED_VSYNC and VSYNC in the framestats dump
(https://developer.android.com/preview/testing/performance.html#timing-info)
我认为 Google 的下一个链接应该有所帮助:
https://www.youtube.com/watch?v=VzYkVL1n4M8
https://developer.android.com/topic/performance/rendering/profile-gpu.html
https://developer.android.com/studio/profile/dev-options-rendering.html
根据您拥有的 Android 版本,颜色表示不同的含义。
Android 6.0及以上:
Android 版本 4.x - 5.x :
将 Profile GPU 渲染开发人员功能设置为 "On screen as bars" 时,我曾在 Android Lollipop 上看到带有蓝色、紫色、红色和橙色的条,如 here 所述。
但是在 Android Marshmallow 上,这些条由七种不同的颜色组成:深绿色、中绿色、浅绿色、蓝色、浅蓝色、红色和橙色。
我没能在 Android 开发者网站上找到与这些颜色相关的任何信息。那么这些新颜色是什么意思?
不幸的是还没有官方文档,但是在 this Google+ post 一堆 Googlers 推荐了一个博客 post即 "really well written and details the changes".
引用http://blog.udinic.com/2015/09/15/speed-up-your-app的相关部分:
In Marshmallow, more colors were added to indicate more steps, such as Measure/Layout, input handling and others:
EDIT 09/29/2015: John Reck, a framework engineer in Google, has added this information about some of the new colors:
The exact definition of “animation” is everything that’s registered with Choreographer as CALLBACK_ANIMATION. This includes Choreographer#postFrameCallback and View#postOnAnimation which are what’s used by view.animate(), ObjectAnimator, Transitions, etc… And yup, it’s the same thing systrace labels as “animation”.
“misc” is the delay between the vsync’s timestamp and the current timestamp when it was received. If you’ve ever seen logs from Choreographer about “Missed vsync by blabla ms skipping blabla frames”, that now shows up as “misc”. This is the difference between INTENDED_VSYNC and VSYNC in the framestats dump (https://developer.android.com/preview/testing/performance.html#timing-info)
我认为 Google 的下一个链接应该有所帮助:
https://www.youtube.com/watch?v=VzYkVL1n4M8 https://developer.android.com/topic/performance/rendering/profile-gpu.html https://developer.android.com/studio/profile/dev-options-rendering.html
根据您拥有的 Android 版本,颜色表示不同的含义。
Android 6.0及以上:
Android 版本 4.x - 5.x :