简体   繁体   English

Xcode Instruments不分析任何内容

[英]Xcode Instruments not profiling anything

I have just started out learning how to use Instruments with Xcode. 我刚刚开始学习如何在Xcode中使用Instruments。 Straight out of the gate, for some reason it's not profiling anything when using the Time Profiler. 直接出门,由于某种原因,使用Time Profiler时没有分析任何内容。

I have cleaned my project, re-built, most of the obvious things, but I'm not having any luck still yet. 我已经清理了我的项目,重新构建了大多数显而易见的东西,但是我还没有运气。

It runs the app, and the timer runs, but nothing happens beyond that. 它运行应用程序,并运行计时器,但除此之外没有任何反应。 No stacks show up or any data of any kind. 没有堆栈显示或任何类型的数据。 Just stays blank. 只是保持空白。

could you try this? 你可以试试这个吗?

  1. Start debugging your app with xcode in iOS simulator 开始在iOS模拟器中使用xcode调试应用
  2. Open instruments, then select iOS Simulator/CPU category and choose 'Time Profiler' 打开仪器,然后选择“ iOS Simulator / CPU”类别,然后选择“ Time Profiler”
  3. Change the Target combobox, All Process/Attach to Process 更改目标组合框,将所有处理/附加更改为处理
  4. Look for your app in the displayed list and start record. 在显示的列表中查找您的应用并开始记录。

This image is an example, I'm attaching time profiler to my Calculator app: 此图像是一个示例,我正在将时间分析器附加到我的Calculator应用程序:

将时间分析器附加到iOS模拟器中的Calculator app

I hope this help you. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM