iOS Instrument各列是代表意思

来源:互联网 发布:数据处理软件origin 编辑:程序博客网 时间:2024/05/16 00:30
Live Byte :  活着的对象占了多少个字节 #Living:   当前有多少个活着的对象 #Transitory    :创建后又销毁了的对象有多少个 Overall Bytes   :创建过的对象一共用过多少个字节(包括销毁了的) #Overall           : 一共创建过多少个对象(包括销毁了的) #Allocations: 直方图:颜色就起个标识作用, 那个 net我不确定是不是指网络占用的内存 同时也可以参考一个来自stackoverflow的英文描述
The "Analyzing Data with the ObjectAlloc Instrument" section of the Instruments User Guide used to provide some description of the detail view for this instrument (the whole guide has since been rewritten):
The Detail pane (while it is in Table mode) displays other useful information to help you spot potential allocation issues. The net versus overall allocations column of the table shows a histogram of the currently active objects and the total number that were ever created. As the ratio of net allocations to overall allocations shrinks, the color of the histogram bar changes. Blue histogram bars represent a reasonable ratio while colors shifted towards the red spectrum represent lower ratios that might warrant some investigation.
Object allocations are grouped by type, which is what appears under the Category header. The Live Bytes column indicates how many of this type of object have been allocated and still are around in memory. Likewise, the # Living column tells you how many objects of this type are still around in memory. The Overall Bytes and # Overall columns show the total size in memory and number of all allocated objects of that type, whether or not they are still around in memory at this time. Finally, the # Transitory is simply the difference between # Living and # Overall, showing how many objects of that type were created and destroyed during the time period you are analyzing. The histogram at the right of this table is described by the above-quoted section from the documentation, but it simply provides a graphical measure of the numbers described above.
http://stackoverflow.com/questions/2794420/what-do-the-columns-in-the-object-alloc-instrument-mean 或者参考来自苹果开发者中心的帮助:https://developer.apple.com/library/mac/#documentation/developertools/conceptual/InstrumentsUserGuide/Introduction/Introduction.html
0 0
原创粉丝点击