编舞的消息在logcat的含义 [英] Meaning of Choreographer messages in Logcat

查看:160
本文介绍了编舞的消息在logcat的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我装 SDK(API 16)的最新版本,并得到了最新的ADT。我现在看到的这些消息在logcat中,我敢肯定,我以前从未见过的。有没有人有一个想法,这事吗?

I installed the latest versions of SDK (API 16) and got the latest ADT. I'm now seeing these messages in the logcat, that I'm quite sure, I haven't seen before. Does anyone have an idea about this?

06-29 23:11:17.796:I /编舞(691):跳过647帧!该   应用程序可能会做它的主线程的工作太多了。

06-29 23:11:17.796: I/Choreographer(691): Skipped 647 frames! The application may be doing too much work on its main thread.

我做了搜索,发现这个链接: <一href="http://developer.android.com/reference/android/view/Choreographer.html">http://developer.android.com/reference/android/view/Choreographer.html.这是API 16引入了一个新的类。

I did a search and found this link: http://developer.android.com/reference/android/view/Choreographer.html. This is a new class introduced in API 16.

我需要知道我怎么能确定是什么太辛苦了我的应用程序,可以做我所有的处理都是在做的AsyncTask 秒。

I need to know how I can determine what "too much work" my application may be doing as all my processing is done in AsyncTasks.

推荐答案

编导让应用程序来自己连接到垂直同步,并适当时间的事情来提高性能。

Choreographer lets apps to connect themselves to the vsync, and properly time things to improve performance.

Android的看法动画内部使用编舞为了同样的目的:正确的时间动画和可能提高性能

Android view animations internally uses Choreographer for the same purpose: to properly time the animations and possibly improve performance.

由于编导讲述每一个VSYNC的事件,我可以告诉大家,如果的Runnable之一的Choreographer.post传承下去* API的犯规完成在一帧的时间,导致帧被跳过。

Since Choreographer is told about every vsync events, I can tell if one of the Runnables passed along by the Choreographer.post* apis doesnt finish in one frame's time, causing frames to be skipped.

在我的理解编导只能检测跳帧。它没有办法知道为什么发生这种情况的。

In my understanding Choreographer can only detect the frame skipping. It has no way of telling why this happens.

消息应用程序可能会做太多的工作,它的主线。可能会产生误导。

The message "The application may be doing too much work on its main thread." could be misleading.

这篇关于编舞的消息在logcat的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆