-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[问答]如何获取android程序流畅度(SM: SMoothness) #236
Comments
反编译他们看了一眼,监听系统log实现的。代码里有句log
|
每一帧渲染的时候log一次, 然后算下fps吧 Harry notifications@github.com于2015年12月15日周二 下午6:14写道: do much thing in main thread 巴拉巴拉的 — |
@LLin233 仔细看了一下,上面写的是文章里提到的另外一个概念“丢帧”数。 |
反编译了,代码里主要有两个service: SMLogService 比较清晰就是在监听log, SMDataService 看不懂在搞什么啊 |
Choreographer 的api里这样描述这个类的 :Each Looper thread has its own choreographer ,但是我只能打出一个log的数值,难道是因为16ms一此,太快了log打印不出来》 |
SM(Smooth,流畅度)、SF(SkippedFrame,跳帧) 基础数据来源背景: 指标计算方法: void More ...doFrame(long frameTimeNanos, int frame) { SF(SkippedFrame,跳帧),注:SM(Smooth,流畅度)的获取方式基于SF(SkippedFrame,跳帧)的获取,SM=60-SF |
GT工具的开源的地址:https://github.com/TencentOpen/GT |
https://github.com/TencentOpen/GT |
在 《如何量化Android应用的“卡”?—流畅度原理&定义篇》一文中,提到了
没大理解这里具体是怎么实现的,求教。
The text was updated successfully, but these errors were encountered: