清除仪器CPU分析
我可能在这里遗漏了一些明显的东西,但是 Instruments 有没有办法在不重新启动应用程序的情况下清除 CPU 配置文件数据?
我有一个 iOS 游戏,我试图只分析核心游戏屏幕,但我必须通过其他几个屏幕才能达到这一点,到那时我有大量我不关心的分析数据,它是扭曲了我想要查看的结果。
I'm probably missing something obvious here, but is there a way in Instruments to clear the CPU profile data without restarting the App?
I have an iOS game I'm trying to profile just to core game screen, but I have to go though several other screens to get to that point and by that time I have a ton of profiling data I don't care about and it's skewing the results of that I'm trying to look at.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道有什么方法可以在不重新启动应用程序的情况下启动另一个仪器运行,但您可以使用工具栏中的“检查范围”按钮隐藏您不关心的分析数据。跟踪窗口中的图形上方是时间线。单击感兴趣的分析数据开始的时间线,然后单击左侧的检查范围按钮。图形将在您设置检查范围的位置突出显示,并且详细视图中的统计数据将更新以显示您设置的检查范围的统计数据。
如果需要进一步细化检查范围,请单击时间线中的第二个点,然后单击右侧的检查范围按钮。单击中间的检查范围按钮将清除您设置的检查范围。
I don't know of any way to launch another Instruments run without restarting the app, but you can hide the profiling data you don't care about by using the Inspection Range buttons in the toolbar. Above the graphs in the trace window is a timeline. Click the timeline where the interesting profiling data begins, and click the left Inspection Range button. The graph will be highlighted where you set the inspection range, and the statistics in the detail view will update to show the statistics for the inspection range you set.
If you need to further refine the inspection range, click a second point in the timeline and click the right Inspection Range button. Clicking the middle Inspection Range button clears the inspection range you set.