对象分配工具中的列有何含义?

发布于 2024-08-31 10:19:45 字数 213 浏览 4 评论 0原文

我无法找到这方面的文档。没有快速信息。

这些列有这些不透明的标题:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

戏蝶舞 2024-09-07 10:19:45

仪器用户指南的“使用 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):

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.

静待花开 2024-09-07 10:19:45

以下是有关仪器的更多信息...已批准答案的链接重新路由中的链接不起作用。

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

始于初秋 2024-09-07 10:19:45

请参阅分配工具

实时字节

数已分配但未释放的字节数。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文