Can Instruments be used using the command line?

后端 未结 2 823
广开言路
广开言路 2021-01-05 07:45

Can Instruments be used as a replacement for

valgrind

If one wants to check for memory leaks using instruments can it be used

2条回答
  •  佛祖请我去吃肉
    2021-01-05 08:17

    For Xcode 9, if you want to profile a iOS app, an example command like this:

    instruments -t Zombies -w 'iPhone SE (11.0.1) [XXX] (Simulator)' MyApp.app
    

    instruments command ref:

    https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Recording,Pausing,andStoppingTraces.html#//apple_ref/doc/uid/TP40004652-CH12-SW3

提交回复
热议问题