简体   繁体   English

如何在仪器上准确运行这种类型的Xcode调试测试?

[英]How Can I Run This Type of Xcode Debug test exactly on Instruments?

How can I Run This Type of Debug Tests On Instruments? 如何在仪器上运行这种类型的调试测试?

PNG PNG

PNG PNG

PNG PNG

What I mean is showing the "Stats" Results in a simple manner like on Xcode Pictures and the (Graph Display) also but On Instruments, they have many tests on Instruments but they are too confusing I don't know how to read the stats as they give too much information, I need something more simple like the Xcode does on the Pictures, Why it's only available on Xcode? 我的意思是像在Xcode Pictures和(图形显示)上一样,以简单的方式显示“统计”结果,但在Instruments上,它们在Instruments上进行了许多测试,但它们太令人困惑了,我不知道如何读取统计信息因为它们提供了太多信息,所以我需要一些更简单的东西,例如Xcode在“图片”中所做的事情,为什么它仅在Xcode上可用? or did I miss something. 还是我错过了什么。 Why I just don't Run the project from Xcode? 为什么我不从Xcode运行项目? because I haven't got the Xcode Project for my Game, I just have the App Installed and the IPA file, so at the moment is more convenient to Run Instruments and Run the Game directly from there. 因为我的游戏还没有Xcode项目,所以我只安装了App和IPA文件,因此,现在更方便地直接从此处运行Instruments和Run Game。 Unless I can convert the Ipa to Xcode. 除非我可以将Ipa转换为Xcode。 On Instruments they have Tests like example: For Cpu Monitoring I found this Test but how do you interpret the Results is to much info on there. 在Instruments上,它们具有类似示例的测试:对于Cpu监视,我找到了该测试,但是您如何解释结果却有很多信息。 Instruments Test CPU: PNG 仪器测试CPU: PNG

Instruments is not going to put the real stats in a simple manner for you like Xcode's debug gauges do. 仪器不会像Xcode的调试器那样以简单的方式为您提供真实的统计信息。 Using Instruments is going to require some work from you to gather the information. 使用乐器将需要您进行一些工作来收集信息。 If your game is running fine on iOS devices, you may be better off not using Instruments. 如果您的游戏在iOS设备上运行良好,则最好不要使用Instruments。 You generally use Instruments on a game when it's running slowly and you want to figure out why it's running slowly. 通常,在游戏运行缓慢时,您会在游戏上使用“乐器”,但要弄清楚为什么游戏运行缓慢。

Should you decide to use Instruments, you should choose the Game Performance template from Instruments. 如果您决定使用乐器,则应从乐器中选择游戏性能模板。 It contains a whole bunch of instruments for measuring a game's performance. 它包含大量用于衡量游戏性能的工具。 This template is available in Xcode 10. I'm not sure if it's available in earlier versions of Xcode and Instruments. 该模板在Xcode 10中可用。我不确定在Xcode和Instruments的早期版本中是否可用。

The problem for someone new to Instruments is that you're going to be flooded with data. 对于Instruments的新手来说,问题是您将被数据淹没。 Telling you how to interpret all that data is too much for a Stack Overflow answer. 对于堆栈溢出答案,告诉您如何解释所有这些数据实在太多了。 The following article shows you how to interpret the data from the Time Profiler instrument, which is one of the instruments in the Game Performance Template: 下面的文章向您展示如何解释来自Time Profiler工具的数据,该工具是Game Performance Template中的工具之一:

Time Profiler Instrument 时间分析仪

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

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