Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on Safety and Performance of OOM Monitor and .dat File Size on iOS #889

Open
canhth opened this issue Sep 23, 2024 · 0 comments

Comments

@canhth
Copy link

canhth commented Sep 23, 2024

Issue /提问须知

I'm trying Matrix iOS/macOS framework for monitoring out-of-memory (OOM) usage and have a few concerns and questions regarding its safety and performance in a production environment.
I would greatly appreciate your clarification on the following:

1. OOM Monitor in Release mode

As the documentation said, WCMemoryStatPlugin uses private APIs, which are disabled in Release mode to avoid App Store audit issues.

  • Question: Does this mean the OOM monitor feature of Matrix is only intended for Debug builds? Is there any risk or limitation when using it in production without the private API (in Release mode)?

2. Size of .dat Records

I have noticed that the size of .dat files generated during testing is quite large. For a simple demo app, some .dat files exceed 700MB in size.

  • Question 1: Is it safe to allow these large .dat files in a production environment?
  • Question 2: Is there a way to reduce the size of these .dat files, such as limiting the amount of data logged, or applying filters?

3. Performance Impact

The latest available performance data regarding CPU and memory usage was shared in the documentation:

WCMemoryStatPlugin has a CPU usage of about 13% when running in the iPhone 6 Plus. This is related to the amount of data generated by the application. The amount of data generated is large, which may result in slightly higher CPU usage.
WCMemoryStatPlugin uses mmap to map files to memory, with around 20MB memory occupation.
  • Question: Are there any recent updates on how the CPU and memory usage of WCMemoryStatPlugin affects performance, especially on modern devices and larger applications?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant