时间分析器工具未显示目标C函数 [英] Time profiler instruments not showing objective c functions

查看:52
本文介绍了时间分析器工具未显示目标C函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用仪器,但是在时间分析器中我只能看到0x00345等,尽管我启用了仅显示目标c"选项,但我看不到任何目标c代码...感谢任何帮助! //i.stack.imgur.com/PLacA.png"alt ="没有仅显示目标c"选项>

I am using instruments but i see only 0x00345 etc in time profiler i do not see any objective c code although i am enabling the 'show objective c only' option...any help appreciated!

推荐答案

出现问题的最可能原因是没有为您的项目生成调试符号.没有调试符号,Instruments仅显示内存地址,如第一个屏幕截图中所示.

The most likely cause of your problem is that debug symbols are not being generated for your project. Without debug symbols Instruments just shows memory addresses, like the ones shown in your first screenshot.

有两种方法可以解决此问题.首先,使用调试"构建配置来分析您的应用程序.使用项目窗口工具栏中的方案"菜单更改构建配置.其次,对于Release版本配置,将Generate Debug Symbols版本设置设置为Yes.

There are two ways to fix the problem. First, profile your app with the Debug build configuration. Use the Scheme menu in the project window toolbar to change the build configuration. Second, set the Generate Debug Symbols build setting to Yes for the Release build configuration.

这篇关于时间分析器工具未显示目标C函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆