Inspecting memory allocation,leaks using Instruments tool

时光怂恿深爱的人放手 提交于 2019-12-11 06:26:30

问题


As suggested by many,instruments tool is the best way to capture the memory allocation and leaks.But for me its been easy to use instruments tool,but i am confused with the detailed results as shown in the above screenshot.

Want to know the meaning of following points, 1)All Allocations, 2)Live Bytes, 3)Overall Bytes, 4)Overall.

Simple but confusing!Any answer will be greatly appreciated.


回答1:


live bytes: The number of bytes that have been allocated but not released yet.
Living:*The number of object created and still on the heap.
Transitory: The number of objects created and destroyed
Overall byte: The total number of byte that have been allocated and released
overall
:The total number of objects allocated and released .
all allocations: All the allocations while the application is running .



来源:https://stackoverflow.com/questions/14313486/inspecting-memory-allocation-leaks-using-instruments-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!