新手区 对于 logcat 打印出的日志的几点问题

jc · 2015年09月13日 · 最后由 撞树桐 回复于 2015年09月14日 · 1985 次阅读

大家好,今天在使用 logcat 时发现以下几行日志,不知道代表什么意思
使用命令:

db logcat |grep AppLaunch

出现:

/ActivityManager(  831): [AppLaunch] Displayed Displayed com.yek.lafaso/.product.details.ui.activity.ProductDetailsActivity: +128ms
D/ActivityManager(  831): AP_PROF:AppLaunch_LaunchTime:com.yek.lafaso/.product.details.ui.activity.ProductDetailsActivity:128:219450088

上面第一句是 native 的启动时间,下面一句的 128:219450088 是啥意思,有人懂吗?

db logcat |grep SurfaceFlinger

看到如下日志:



/SurfaceFlinger(  269): Set power mode=2, type=0 flinger=0x7f9ec59000
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:0.097431,dur:256592.38,max:255814.46,min:14.32
D/SurfaceFlinger(  269): Skip composition.
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:47.868484,dur:1044.53,max:103.59,min:13.12
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:42.281307,dur:1017.00,max:259.34,min:15.93
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:17.967888,dur:1001.79,max:380.16,min:16.65
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:0.594371,dur:1682.45,max:1682.45,min:1682.45
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:20.411409,dur:1322.79,max:415.01,min:14.08
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:22.970333,dur:1175.43,max:605.31,min:14.75
D/SurfaceFlinger(  269): Skip composition.
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:53.970699,dur:1000.54,max:34.28,min:14.87
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:36.964214,dur:1000.97,max:244.00,min:15.55
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:56.910717,dur:1001.57,max:34.72,min:16.02
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:43.906178,dur:1002.14,max:121.24,min:15.87
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:34.978539,dur:1000.61,max:259.33,min:16.23
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:46.297737,dur:1036.77,max:173.99,min:15.75
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:21.125561,dur:1088.73,max:708.67,min:15.30
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:54.982693,dur:1000.31,max:50.65,min:16.85
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:49.481052,dur:1071.12,max:156.04,min:16.18
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:56.931221,dur:1001.21,max:35.30,min:15.68
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:56.939327,dur:1001.07,max:34.64,min:15.30
I/SurfaceFlinger(  269): [Built-in Screen (type:0)] fps:40.762913,dur:1226.61,max:363.63,min:16.06

fps:40.762913,dur:1226.61,max:363.63,min:16.06 这句是代表在 1228.61ms 内的 fps 是 40.7,最大一帧的绘制时间为 363.63,最小一帧的绘制时间为 16.06ms?

共收到 1 条回复 时间 点赞

128:219450088
128 应该是上面的 128 毫秒。启动时间吧
219450088 觉得是日期的 long 值(猜的……)

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册