ios – Xcode Instruments分配中的所有堆分配和所有匿名分配是什么?

ios – Xcode Instruments分配中的所有堆分配和所有匿名分配是什么?,第1张

概述我有一个申请.当我重复一些动作时,匿名分配内存不断增加很多,而堆分配增加了一点.有人能帮我吗 ?谢谢 关注所有堆分配的实时字节列,以查看应用程序使用的内存量.您无法控制应用程序的匿名VM大小. Focus on the heap allocations because your app has more control over heap allocations. Most of the memo 我有一个申请.当我重复一些动作时,匿名分配内存不断增加很多,而堆分配增加了一点.有人能帮我吗 ?谢谢解决方法 关注所有堆分配的实时字节列,以查看应用程序使用的内存量.您无法控制应用程序的匿名VM大小.

Focus on the heap allocations because your app has more control over
heap allocations. Most of the memory allocations your app makes are
heap allocations.

The VM in anonymous VM stands for virtual memory.
When your app launches,the operating system reserves a block of
virtual memory for your application. This block is usually much larger
than the amount of memory your app needs. When your app allocates
memory,the operating system allocates the memory from the block it
reserved.

Remember the second sentence in the prevIoUs paragraph. The operating
system determines the size of the virtual memory block,not your app.
That’s why you should focus on the heap allocations instead of
anonymous VM. Your app has no control over the size of the anonymous
VM.

资料来源:http://meandmark.com/blog/2014/01/instruments-heap-allocations-and-anonymous-vm/

总结

以上是内存溢出为你收集整理的ios – Xcode Instruments分配中的所有堆分配和所有匿名分配是什么?全部内容,希望文章能够帮你解决ios – Xcode Instruments分配中的所有堆分配和所有匿名分配是什么?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1021038.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存