鲨鱼剖析iPhone应用程序 [英] Shark for profiling iPhone app

查看:110
本文介绍了鲨鱼剖析iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Shark在iPhone上配置我的应用程序. 根据Shark用户指南中的说明,从

I am using Shark to profile my application on iphone. As per instruction in Shark user guide from http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/SharkUserGuide/SelectingExecutiontoSampleorTrace/SelectingExecutiontoSampleorTrace.html#//apple_ref/doc/uid/TP40005233-CH13-SW19

我能够为我的应用程序生成配置文件.但是我的应用程序中的大多数功能在符号标题下都为未知.这是因为我正在使用应用程序的发行版.用户指南建议可以通过使用符号化信息和应用程序的符号丰富的二进制文件来生成符号信息.因此,首先我生成了保留调试信息的应用程序调试版本,然后生成了发行版本,并使用shark进行了概要分析,然后使用FILE/symbolicate选项,并从Debug-iphoneOs中选择了应用程序的调试版本.我得到错误符号表示失败. 谁能建议一种消除此错误的方法?

I am able to generate profile for my application. But most of functions in my application appear as unknown under symbol header. This is because I am using release version of application. The user guide suggest that symbol information can be generated by using symbolification information and symbol rich binary of application. So first I generated debug version of application retaining the debug information then generated release version and used shark to profile and then used FILE/symbolicate option and selected the debug version of application from Debug-iphoneOs. I get error symbolification failed. Can anyone suggest a method to eliminate this error?

推荐答案

如果要使用File-> Symbolicate使用符号对iPhone应用程序进行概要分析,我相信您需要对iPhone上的调试版本进行概要分析,而不是发行版本. .至少这就是我过去使用它的方式.这样,当您使用Debug-iphoneos中的构建符号化时,您引用的是同一张图片.

If you want to profile your iPhone app with symbols using File->Symbolicate, I believe you need to profile the debug version on your iPhone, not the release version. At least that's how I've gotten it to work in the past. That way when you symbolicate using the build in Debug-iphoneos, you're referencing the same image.

这篇关于鲨鱼剖析iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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