Is there any way to see the CPU usage ?

Hello everybody !

I’m deep in the optimization of my game : I’m able to see the system memory, the texture memory, but what about the CPU usage ?

Right now, it seems I don’t have any (non-relevant) memory leaks. Both system memory and texture memory are stable, even if sometimes it can get high.

Is there any way to see the CPU usage ? Is it even relevant ? Or do I have to rely only on those two informations ?

Thanks a lot !

Outside of a Corona Enterprise plugin, I don’t believe it’s possible to measure CPU usage directly through your Lua code. You might just be better off getting a profiler for your test device(s) and grabbing the info from the timestamps from within you were testing your app. I know the vast majority of custom ROMs for Android devices expose that information out of a desire for transparency. Another better-informed Corona developer/engineer might know better, but I believe that will be the best way for you to go.

Oh ok thanks a lot ! Too bad there’s no way to do it directly in Corona.

I’m actually using TestFairy to deploy my apps on Android and I’ve just noticed it does watches the CPU usage with a nice graphic…

Outside of a Corona Enterprise plugin, I don’t believe it’s possible to measure CPU usage directly through your Lua code. You might just be better off getting a profiler for your test device(s) and grabbing the info from the timestamps from within you were testing your app. I know the vast majority of custom ROMs for Android devices expose that information out of a desire for transparency. Another better-informed Corona developer/engineer might know better, but I believe that will be the best way for you to go.

Oh ok thanks a lot ! Too bad there’s no way to do it directly in Corona.

I’m actually using TestFairy to deploy my apps on Android and I’ve just noticed it does watches the CPU usage with a nice graphic…