android - 为什么我在 Android 12 模拟器上运行时在日志中看到 EGL_emulation app_time_stats?

标签 android flutter android-emulator logcat android-12

在运行 Android 12 的模拟器上测试 Flutter 应用程序时,我会定期(大约每秒)在日志中看到这样的行:

D/EGL_emulation(32175): app_time_stats: avg=312.93ms min=133.69ms max=608.57ms count=4
它们是什么意思,我该如何关闭它们?我从未在 Android 11 模拟器上见过它们,所以我猜它与 Android 12 有关吗?

最佳答案

所有这些 EGL_emulation 消息确实非常烦人。到目前为止,我的解决方案是创建一个自定义 logcat 过滤器。
您可以通过单击 logcat 工具栏最右侧的下拉菜单并选择编辑过滤器配置来打开 logcat 过滤器配置。您必须设置两个正则表达式:

  • ^(?!(EGL_emulation))在 Log Tag 字段中过滤所有带有“EGL_emulation”标签的消息。
  • ^(?!(\?))在 Package Name 字段中过滤来自应用程序的所有消息,但没有调试信息。这不如 Show only selected application 过滤器 but the closest thing to a similar behavior so far .

  • 这也是我的配置的屏幕截图,以防文本不清楚:
    Logcat filter
    但是,我真的希望这个问题尽快在上游得到解决;)

    关于android - 为什么我在 Android 12 模拟器上运行时在日志中看到 EGL_emulation app_time_stats?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70376084/

    相关文章:

    android - 从服务 Android M 请求位置权限

    android - ListView中嵌入ExpandableListView时如何调整ListView的高度

    android - 模拟器 qemu : could not load initrd ' ' while trying to run android emulator

    java - Android 两个具有相同值的整数不正确相等

    android - Google Play 服务修订版 24

    android - Flutter - 无法从父小部件更改子状态

    flutter - flutter :从 flutter 应用程序构建apk失败

    flutter - CustomPaint drawLine 无法对绘制的线条应用透明度

    android - 找不到包模拟器 Android Studio

    android - 如何停止模拟应用程序运行? (Android Studio,64 位 Win7 SP1)