1

After a while I figured out I could bind Shark to the process of my executable in the simulator. Not on the device though. Well, anyways, here is something that makes absolutely zero sense, but looks bad:

42.2%   42.2%   QuartzCore  sw_scanline(int, int, int, ogl_poly_vert*, ogl_poly_vert*, ogl_poly_vert*, ogl_poly_vert*, unsigned int, void*) 

That was the topmost entry in the List of Evil. What does Shark try to say here? And how can I fix a performance problem now, with this information? Any idea what that means? Or is there a hidden feature that will give me more useful data?

4

1 回答 1

0

这很可能是模拟器的一个实现细节。可能是为了使 UIKit 绘图显示在窗口中所做的任何事情。

针对在设备上运行的应用程序使用 Sampler Instrument。如果该特定功能在设备上消耗了同样多的 CPU,Instruments 将显示它。

您可以在模拟器中进行的低级优化只有这么多;例如,任何特定于架构或特定于设备的事情都无法完成。这可能是特定于环境的差异,因此无需担心。

于 2009-09-04T15:11:20.230 回答