有人可以解释苹果仪器工具中轨迹的颜色和含义吗?
我正在努力成为一名优秀的程序员并修复我的 iPhone 应用程序中的漏洞...... 我无法理解泄漏中的堆栈跟踪试图告诉我什么。 有多种颜色的堆栈调用,我猜每种颜色都意味着什么,但是什么呢?
另外..在下面的屏幕截图中,堆栈跟踪中的所有调用都不是来自我的任何类,这是否意味着泄漏是由iPhone SDK中的代码引起的,或者某些消息返回了我应该释放的保留对象?也许所有的颜色都可以暗示我这个问题?
替代文本 http://blog.underplot.com/files/leaks.png
谢谢
I'm trying to be a good programmer and fix the leaks in my iPhone app...
I can't understand though what the Stack Trace in Leaks is trying to tell me.
There are multi coloured stack calls and I guess each color means something, but what?
Also .. in the screenshot below all calls in the stack trace are not from any of my classes, does that mean the leak is caused by code in iPhone SDK or some message returned me retained object which I was supposed to release ? Maybe all the colours can hint me on that issue?
Instruments Stack Trace Screenshot
alt text http://blog.underplot.com/files/leaks.png
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
颜色(颜色)是您的代码所使用的库的类型(这通常意味着您没有显式调用的东西 - 仪器将它们称为“负责任的库”。)。如果您在“堆栈跟踪”单元顶部的设置菜单中关闭“按库颜色”选项,它将恢复为白色/浅蓝色单元,以免分散您的注意力。
在我见过的颜色中:
您通常从下往上读取堆栈(或在设置中颠倒该顺序,并且您可以为每个项目打开帧编号和文件图标,以帮助您保持清晰。)
The colors (colours) are the types of libraries your code is employing (which often means stuff you do not call explicitly--Instruments call them the 'responsible libraries.'). If you turn the 'color by library' option off in the settings menu at the top of the Stack Trace cell, it'll revert to white/light blue cells so as to not distract you.
Among the colors I've seen:
You normally read the stack from bottom up (or invert that order in the settings, and you can turn on frame numbers and file icons for each of the items to help you keep it straight.)