Xcode 4 中的乐器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5304390/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Instruments in Xcode 4
提问by learner2010
I was trying to open instruments in xcode 4 but was not able to find a way to do it. Usually in Xcode 3, we would do run -> run with performance tool... but I dont really find any such thing to do it in xcode 4.. would anyone be able to tell me how to do this?
我试图在 xcode 4 中打开仪器,但找不到方法来做到这一点。通常在 Xcode 3 中,我们会运行 -> 使用性能工具运行......但我真的没有在 xcode 4 中找到任何这样的事情......有人能告诉我怎么做吗?
回答by GendoIkari
If you want to use Instruments with your product:
如果您想在您的产品中使用 Instruments:
Product -> Profile
产品 -> 简介
This brings up a dialog where you can choose Leaks, Allocations, etc.
这将打开一个对话框,您可以在其中选择泄漏、分配等。
回答by Kendall Helmstetter Gelner
Cmd-I also works to invoke Profile.
Cmd-I 还可以调用 Profile。
By default Profile is set up to use the Release build. If you want it to use Debug then pull down the platform dropdown, select "Edit Scheme", go to the "Profile" side-tab, and tell it to use Debug instead of Release.
默认情况下,配置文件设置为使用发布版本。如果您希望它使用 Debug,请下拉平台下拉菜单,选择“Edit Scheme”,转到“Profile”侧选项卡,并告诉它使用 Debug 而不是 Release。
回答by Nick Weaver
Product -> Perform Action -> Profile Without Building This should spawn a dialog to choose the good old known Instrument's templates from.
产品 -> 执行操作 -> 没有构建的配置文件 这应该会产生一个对话框,从中选择古老的已知 Instrument 模板。