对象分配工具中的列有何含义?
我无法找到这方面的文档。没有快速信息。
这些列有这些不透明的标题:
Category
Live Bytes
# Living
# Transitory
Overall Bytes
# Overall
# Allocations (Net / Overall)
是否有文档显示这些列的含义?不用读600页?
I was unable to find the documentation for this. There is no Quick Info.
The columns have these opaque titles:
Category
Live Bytes
# Living
# Transitory
Overall Bytes
# Overall
# Allocations (Net / Overall)
Is there a document that shows what these columns mean? Without having to read 600 pages?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
仪器用户指南的“使用 ObjectAlloc 仪器分析数据”部分用于提供该仪器的详细视图的一些描述(整个指南已被重写):
对象分配按类型分组,类型显示在
Category
标头下。Live Bytes
列指示已分配且仍在内存中的此类对象的数量。同样,# Living
列告诉您内存中仍有多少此类型的对象。Overall Bytes
和#Overall
列显示内存中的总大小以及该类型的所有已分配对象的数量,无论它们此时是否仍在内存中。最后,# Transitory
只是# Living
和#Overall
之间的区别,显示在该过程中创建和销毁了多少该类型的对象。您正在分析的时间段。该表右侧的直方图是由文档中上述部分描述的,但它只是提供了上述数字的图形度量。
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):
Object allocations are grouped by type, which is what appears under the
Category
header. TheLive 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. TheOverall 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.
以下是有关仪器的更多信息...已批准答案的链接重新路由中的链接不起作用。
https://developer. apple.com/library/mac/#documentation/developertools/conceptual/InstrumentsUserGuide/Built-InInstruments/Built-InInstruments.html
这也详细说明了条形颜色的含义...
*向下滚动大约一半到分配部分。
[更新的链接,您应该能够在这里找到信息。]
https://developer.apple.com/library/mac/#documentation/developertools/conceptual/InstrumentsUserGuide/Introduction/Introduction.html
Here's some more information on Instruments... The link in the approved answer's link reroute doesn't work.
https://developer.apple.com/library/mac/#documentation/developertools/conceptual/InstrumentsUserGuide/Built-InInstruments/Built-InInstruments.html
This also breaks down what the colors of the bars mean...
*Scroll down about half way to the Allocations section.
[updated link, you should be able to find the info in here.]
https://developer.apple.com/library/mac/#documentation/developertools/conceptual/InstrumentsUserGuide/Introduction/Introduction.html
请参阅分配工具
实时字节
数已分配但未释放的字节数。
Living
已创建且仍在堆上的对象数量。
瞬时
在选定时间范围内创建和销毁的对象数量。
总字节数
已分配的该类型的字节总数,包括已释放的字节数。
总体
已分配的此类对象或内存块的总数,包括已释放的对象或内存块的总数。
分配(净额/总体)
经常账户和总账户的直方图。
See Allocations Instrument
Live Bytes
The number of bytes that have been allocated, but not released.
Living
The number of objects created and still on the heap.
Transitory
The number of objects that were created and destroyed in the selected time range.
Overall Bytes
The total number of bytes of this type that have been allocated, including those that have been released.
Overall
The total number of objects or memory blocks of this type that have been allocated, including those that have been released.
Allocations (Net / Overall)
A histogram of the current and total accounts.