在 Xcode/Iphone 中测量 FPS/性能
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25388026/
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
Measuring FPS/Performance in Xcode/Iphone
提问by justin henricks
I am running a Sencha Touch application and I am wondering what the best way to measure my FPS while running my app on a device from Xcode? Specifically I have an infinitely scrolling facebook-like wall and I am trying to measure my scrolling performance.
我正在运行 Sencha Touch 应用程序,我想知道在 Xcode 的设备上运行我的应用程序时测量 FPS 的最佳方法是什么?具体来说,我有一个无限滚动的类似 facebook 的墙,我正在尝试衡量我的滚动性能。
回答by shabbirv
You can use instruments for this! Tap and hold the play button in Xcode and press 'profile' and it will open the instruments app. Use the Core Animation Template. It'll show you FPS to test your scroll performance.
您可以为此使用仪器!点击并按住 Xcode 中的播放按钮,然后按“配置文件”,它将打开仪器应用程序。使用核心动画模板。它将显示 FPS 以测试您的滚动性能。
回答by Sri
You can also use this tool for measuring FPS on both iOS and Android devices, simultaneously and you dont even need a mac (PC/linux would do!)
您还可以使用此工具在 iOS 和 Android 设备上同时测量 FPS,甚至不需要 mac(PC/linux 都可以!)
https://www.gamebench.net/en/content/gamebench-desktop-profiler
https://www.gamebench.net/en/content/gamebench-desktop-profiler