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

3,255

Solution 1

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 ;)

Solution 2

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.
Share:
3,255
Magnus
Author by

Magnus

I have delivered value. But at what cost? Bachelor of Science degree in Computer Engineering. ✪ Started out on ATARI ST BASIC in the 1980's, writing mostly "Look door, take key" type games.    ✪ Spent a few years in high school writing various small programs for personal use in Delphi.    ✪ Learned PHP/SQL/HTML/JS/CSS and played around with that for a few years.    ✪ Did mostly Android and Java for a few years.    ✪ Graduated from Sweden Mid University with a BSc in Computer Engineering. At this point, I had learned all there was to know about software development, except where to find that darn "any" key...    ✪ Currently working with Flutter/Dart and Delphi (again).   

Updated on January 02, 2023

Comments

  • Magnus
    Magnus over 1 year

    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?

    • imperial-lord
      imperial-lord over 2 years
      Any solutions to this? I tried using Android 12 on my new Apple Silicon Mac, and I ma seeing these too.
  • TreyWurm
    TreyWurm about 2 years
    At least on Android Studio Bumblebee 2021.1.1 it seems like the prefixes are not part of the tag/message, so i could not include them to the regex
  • Nino DELCEY
    Nino DELCEY almost 2 years
    Same, this solution doesn't work.