开发者

Xcode Instruments output interpretation for iPad app

In the Instruments under 开发者_如何学CAllocations, for the "All Allocations" line the "Live Bytes" and "Overall Bytes" show a very small amount of memory (~2.5MB) and they seem to be very stable. But the "# Living" and "# Overall" keep going up gradually.

Question: Which columns are more important in term of finding out memory footprint for my app? What are differences between "Live Bytes" vs "# Living" and "Overall Bytes" vs "# Overall"?

BTW: Instruments shows no leaks memory at all.

Thank you.


The Live Bytes column for the All Allocations category is the best estimate of your app's memory footprint.

The Live Bytes column tells you the amount of currently allocated memory for a given category. The # Living column tells you the number of net memory allocations for a given category. The Overall Bytes column tells you the total amount of allocated memory. The # Overall column tells you the total number of memory allocations.

If you use the Leaks template, the Allocations instrument is configured to track only active memory allocations. When you track only active memory allocations, the Live Bytes and Overall Bytes columns are going to be the same, and the # Living and # Overall columns are going to be the same. Clicking the Info button next to the Allocations instrument lets you configure what the Allocations instrument records.

Xcode Instruments output interpretation for iPad app

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜