android - Android M 上配置文件 GPU 条的颜色

标签 android performance gpu android-6.0-marshmallow

当将配置文件 GPU 渲染开发人员功能设置为“在屏幕上显示为条形”时,我曾经在 Android Lollipop 上看到带有蓝色、紫色、红色和橙色的条形,如所述here .

但在 Android Marshmallow 上,这些条由七种不同的颜色组成:深绿色、中绿色、浅绿色、蓝色、浅蓝色、红色和橙色。

Profile GPU on-screen bars on Android M

我没能在 Android Developers 上找到与这些颜色相关的任何信息。那么这些新颜色意味着什么?

最佳答案

不幸的是,目前还没有官方文档,但在 this 中Google+ 帖子 一群 Google 员工推荐了一篇博客文章,“写得非常好并详细说明了变化”。

引用自 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:

enter image description here

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)

关于android - Android M 上配置文件 GPU 条的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33451381/

相关文章:

java - 数组列表中的泛型错误

java - 多线程会导致每个任务花费更长的时间吗?

node.js - Angular ssr Varnish 使用

algorithm - GPU 上的线性排序。并行处理会改变 Big-O 吗?

cuda - Cuda C 中的加法赋值运算符

android - ABS Theme.Sherlock.Dialog 在 GingerBread 上显示对话框标题

android - 如何使用 OneDrive API Android 获取配置文件详细信息

android - 如何在更新gridview时避免闪烁?

android - 应用程序使应用程序屏幕变慢

assembly - 寻址图形芯片最直接的方法是什么?