How can I find out how much memory my c++ app is using on the Mac

前端 未结 4 1884
谎友^
谎友^ 2020-12-30 17:30

Certain operations in my app are using more memory than I think they should, and I would like to log the current memory usage to help identify which they are.

Is the

4条回答
  •  太阳男子
    2020-12-30 17:44

    You can give a try to mallocDebug function : http://developer.apple.com/mac/library/DOCUMENTATION/Performance/Conceptual/ManagingMemory/Articles/FindingPatterns.html.

提交回复
热议问题