XCode 4 Running the Leaks Instrument

若如初见. 提交于 2019-11-30 11:28:22

问题


This might be a silly question.

How do I run an application with an Instrument in XCode 4 such as Leaks?

I do not see the option like I have in the past, and I have looked around, and either I missed it somewhere, or it is right in front of my face.

Thanks


回答1:


Click and hold on the run button, and choose the profile option.

You can also edit the profile scheme to make it use debug builds when profiling. To do this, go to edit scheme by click on the dropdown next to the stop button:

Then select profile item on the sidebar, then make sure 'Build configuration' is set to debug.




回答2:


as jeff said, that is 1 way you could do it.. other way with keyboard shortcuts is press cmd + I and this runs the profiler and after that you can choose leaks...



来源:https://stackoverflow.com/questions/5305906/xcode-4-running-the-leaks-instrument

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!