简体   繁体   English

如何将Shark绑定到设备上正在运行的iPhone应用程序?

[英]How to bind Shark to an running iPhone app on the device?

I was reading at an apple site that shark captures everything that is running on my mac. 我在一个苹果站点上阅读,鲨鱼捕获了Mac上正在运行的所有内容。 Thats stupid. 那太蠢了。 I want it to be constrained only to my iPhone app on the device, but there's just nothing to select the executable or something like that. 我希望仅将其限制在设备上的iPhone应用程序中,但是没有选择可执行文件之类的方法。 Also in xcode, "Run > Run with Performance Tool > Shark" is grayed out. 同样在xcode中,“运行>使用Performance Tool运行> Shark”显示为灰色。 But shark 4.6x is running. 但是鲨鱼4.6x正在运行。

Are there any videos (except the WWDC stuff for 1500 bucks) that show how to use Shark with an iPhone app on a device? 是否有任何视频(除了WWDC的价格为1500美元)显示了如何在设备上的iPhone应用程序中使用Shark? (I mean how to analyze performance while an app runs on the device) (我的意思是当应用在设备上运行时如何分析性能)

If you create your symbols manually, according to this doc , Shark will show the application name instead of the address space, according to this doc . 如果手动创建您自己的符号,根据本文档 ,鲨鱼会显示应用程序的名称,而不是地址空间,根据这个文档 Don't know of any videos, but that second document should walk you through it pretty clearly. 不知道任何视频,但是第二个文档应该很清楚地引导您。

Basically, in Shark, select Sampling > Network/iPhone profiling (shift-command-N). 基本上,在Shark中,选择“采样”>“网络/ iPhone配置文件”(shift-command-N)。

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

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