Skip to content

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

Open
@zhandongwang

Description

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

Activity

rosen0510

rosen0510 commented on Aug 9, 2019

@rosen0510
Collaborator

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

w99wen123dff

w99wen123dff commented on May 13, 2020

@w99wen123dff

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @w99wen123dff@zhandongwang@rosen0510

        Issue actions

          app使用内存计算的与xcode计算的不一致 · Issue #33 · Tencent/OOMDetector