Home > OS >  A note in console while restarting a flutter application
A note in console while restarting a flutter application

Time:12-06

while creating a flutter application , I restarted the application and after that a note poped out in dubug console

Background sticky concurrent mark sweep GC freed 187009(7MB) AllocSpace objects, 0(0B) LOS objects, 53% free, 6MB/14MB, paused 5.282ms total 60.228ms
 

I wanted to know why do we get this, and what does it mean? I googled it out but I cant find any thing related to it , So it would be very helpful if someone would answer it...

CodePudding user response:

This is to do with the debugging garbage collector.

A garbage collector frees up spare memory that isn't in use, automatically. You can find it in languages such as C and Java - which is what Dart (sometimes) compiles to (simplified). The storage stats you see are to do with how much memory it freed, and you can see it took 60ms in the background.

This is totally normal, and you shouldn't be concerned. AFAIK, you can't hide the log; you definitely shouldn't be able to stop the process.

  • Related