Mauro Botta 2 Posted October 17 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
Dave Nottage 662 Posted October 17 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
Mauro Botta 2 Posted October 17 (edited) 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 October 17 by Mauro Botta Share this post Link to post
Dave Nottage 662 Posted October 17 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 1 Share this post Link to post
NecoArc 1 Posted October 17 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
Aleksey Vorontrov 0 Posted October 19 (edited) 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 October 19 by Aleksey Vorontrov Share this post Link to post