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

app使用内存计算的与xcode计算的不一致 #33

Open
zhandongwang opened this issue May 15, 2019 · 2 comments
Open

app使用内存计算的与xcode计算的不一致 #33

zhandongwang opened this issue May 15, 2019 · 2 comments

Comments

@zhandongwang
Copy link

  • (double)appUsedMemory中计算出的app内存使用值与xcode中Memory Report的值相差很多,试了下通过phys_footprint来计算与xcode的基本一致,能告诉你们这样计算的原因吗
@rosen0510
Copy link
Collaborator

ios有memory compress机制,所以实际占用的物理内存会比app分配的内存少

@w99wen123dff
Copy link

可以使用phys_footprint。
这个基本上和xcode的相同。

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

3 participants