开发者

Xcode Instruments: Build to Profile hangs for large source code files

开发者 https://www.devze.com 2023-03-27 20:51 出处:网络
I am working on a iPhone app where I need to initialize large arrays. I use NSMUtuableArrays and all works fine when compiling normally. However, it takes forever to compile to iPhone compared to simu

I am working on a iPhone app where I need to initialize large arrays. I use NSMUtuableArrays and all works fine when compiling normally. However, it takes forever to compile to iPhone compared to simulator. There is one particular file which 开发者_Go百科has about 50-60k line.

Anyway, I also need to profile the memory and I always used Instruments in Xcode doing:

"Product" ->"build for profiling"

While I cannot get it to run on the iPhone at all, starting Instruments with this app even on the simulator in most cases it just hangs - even overnight.

Is there a better way to use Instruments or to handle such large source code files?

Many thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消