Why am I seeing EGL_emulation app_time_stats in the log when running on an Android 12 emulator?

Viewed 7636

When testing a Flutter app on an emulator running Android 12, I'm seeing lines like these in the logs at regular intervals (approximately every second):

D/EGL_emulation(32175): app_time_stats: avg=312.93ms min=133.69ms max=608.57ms count=4

What do they mean, and how do I turn them off? I've never seen them on Android 11 emulators, so I'm guessing it has something to do with Android 12?

4 Answers
  • Right click on D/EGL_emulation ... in your RUN console window
  • Click "Fold Lines Like This"
  • Edit the filter that's just been added to only contain D/EGL_emulation.
  • All these lines will be removed from the RUN console window now

All these EGL_emulation messages are very annoying, indeed. My solution so far is to create a custom logcat filter.

You can open the logcat filter configuration by clicking on the drop-down far right of the logcat-toolbar and select Edit Filter Configuration. You have to set two regular expressions:

  • ^(?!(EGL_emulation)) in the Log Tag field filters all messages with the "EGL_emulation" tag.

  • ^(?!(\?)) in the Package Name field filters all messages from apps without debug information. This is not as good as the Show only selected application filter, but the closest thing to a similar behavior so far.

Here is also a screenshot of my config, just in case the text is unclear:

Logcat filter

However, I really hope this problem is fixed upstream as soon as possible ;)

These are messages from the Android emulator and can be helpful in some situations. I would suggest only filtering out the Debug messages, and not the Warning or Error messages as those may be useful.

Prefix:

  • D/ - Debug
  • W/ - Warning
  • E/ - Error

For Android Studio Logcat logs:

  • Use the method recommended in Torben's answer in logcat but modify to ^(?!(D/EGL_emulation)) so that Warnings and Errors will still show.

For VSCode Debug Console logs:

  • Simply use a Filter exclusion string as !D/EGL_emulation.

In Android Studio Electric Eel add -tag:EGL_emulation in the filter line like this:

filter line

Related