Hello,
Recently, we started receiving customer complaints that our iOS application causes device overheating and high battery consumption.
Based on this article:
https://www.tmssoftware.com/site/blog.asp?post=288
I analyzed the application using Xcode Instruments. I performed several test runs and checked the Allocations instrument.
In the results, I noticed total memory usage around:
~2.804 GB
When inspecting the allocations, approximately 2 GB appears to be related to JavaScriptCore.
In the stack trace, I can see references to:
TMSFNCWebBrowser
TMSFNCMemo
Environment
-
IDE: Delphi 13.1
-
Platform: iOS
-
Tooling: Xcode Instruments
-
Components involved:
-
TMSFNCWebBrowser
-
TMSFNCMemo
-

Question
Is this level of JavaScriptCore memory usage expected when using TMSFNCWebBrowser or TMSFNCMemo on iOS?
Is there a recommended way to reduce or release this memory usage properly?
For example:
-
Should these components be explicitly destroyed or reset in a specific way?
-
Are there known memory/battery issues with these components on iOS?
-
Is there a workaround or updated version that improves this behavior?
Could you please advise how we should investigate or resolve this?
