Jump to content
Sign in to follow this  
Mauro Botta

How on Mobile optimize memory usage ?

Recommended Posts

Hi,

 

i have a big mobile application ( 150 MB apk ) , i need optimize memory usage.


How can i see with Delphi 12 / 13 on Android / ios memory usage statitistic ?

Share this post


Link to post
1 hour ago, Mauro Botta said:

i have a big mobile application ( 150 MB apk ) , i need optimize memory usage.

If you're referring to the apk size, it's not memory usage - it's space that the code is taking up. It might help to indicate what code your app is using, and what files are being deployed, because a blank app compiled for Release has an .apk size of around 13MB (using Delphi 13)

Share this post


Link to post

HI Dave 🙂


I have no problem with the size, How can I see on Android how much free/used memory use my my App at runtime?

Edited by Mauro Botta

Share this post


Link to post
Just now, Mauro Botta said:

I have no problem with the size

Then why mention it?

Just now, Mauro Botta said:

How can I see on Android how much free/used memory my App has?

This might help

  • Like 1

Share this post


Link to post

not related but you can reduce app size by runing VACUUM command on your database.s3db file

i had an apk with 100mb and after vaccum it was reduced to 40mb 

Share this post


Link to post

You can use "Analize Memory Usage" and "Track Memory Consumption" profiler tools in Android Studio for Android.
You can use "Allocations" tool in Instruments developer tool in XCode on MacOS for MacOS and iOS.

Keep create-free balance of your objects. Use yourInterfaceRef := nil to free unused interfaces.

 

Edited by Aleksey Vorontrov

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

Ă—