【TUYA SDK集成八十一难】【调试疑难】无休止打印EGL_emulation: app_time_stats: avg=

App开发相关产品技术讨论,包括OEM App、App SDK等话题


Post Reply
快乐池塘的小青蛙
Posts: 3

前置环境
目标:跑通tuya app 智能生活SDK Demo
平台:Android
步骤1:下载main分支,9-27号版本。https://github.com/tuya/tuya-home-andro ... sdk-sample
步骤2:按照文档配置好安全图片、key、secret。https://developer.tuya.com/cn/docs/app- ... %8C%20Demo
步骤3:启动虚拟机,虚拟机配置如下:

虚拟机配置.png

调试疑难
发现虚拟机运行时会碰到无休止的打印:

2022-09-28 07:00:14.015 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=502.14ms min=500.08ms max=504.19ms count=2
2022-09-28 07:00:15.028 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=506.17ms min=498.42ms max=513.93ms count=2
2022-09-28 07:00:16.032 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=501.58ms min=500.50ms max=502.65ms count=2
2022-09-28 07:00:17.532 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=499.57ms min=496.15ms max=502.99ms count=3
2022-09-28 07:00:18.533 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=500.09ms min=498.28ms max=501.89ms count=2
2022-09-28 07:00:19.549 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=507.49ms min=502.31ms max=512.67ms count=2
2022-09-28 07:00:21.046 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=498.53ms min=497.71ms max=499.72ms count=3
2022-09-28 07:00:22.047 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=499.76ms min=498.75ms max=500.77ms count=2
2022-09-28 07:00:23.063 7878-7913/com.tuya.smart.android.camerademo D/EGL_emulation: app_time_stats: avg=507.84ms min=502.27ms max=513.41ms count=2

无休止打印.png

原因
此打印跟SDK及Demo无关,应是虚拟机打印出来的。设置日志过滤器滤掉就好。
https://stackoverflow.com/questions/703 ... n-an-andro

Post Reply