Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Instruments

Iam trying to profile my app and want to check for memory leaks. Iam planing to use Xcode instruments.Any one suggest good tutorial to start with Xcode Instruments. Please suggest any alternatives.

like image 730
Vinay Kiran Avatar asked Aug 21 '18 10:08

Vinay Kiran


People also ask

How do I use an instrument in Xcode?

Press Command-I in Xcode, select Allocations from the list and press Choose. After a moment, you'll see the Allocations instrument. It should look familiar because it looks a lot like Time Profiler. Click the record button in the top-left corner to run the app.

What is Instruments on Mac?

"Instruments" is an application provided by Apple that provides a graphical user interface for the DTrace command-line tool. DTrace is a troubleshooting tool available on several Unix-like operating systems, including Mac OS X. It can log and provide statistics for many application and kernel-level operations.

How do I use Instruments in Xcode 11?

Launch Instruments from the Dock: Control-click the Xcode icon in the Dock, and then choose Options > Open Developer Tool > Instruments from the shortcut menu to launch Instruments. Add Instruments to Launchpad: Place an alias to the Instruments app in your /Applications folder to make it appear in Launchpad.

How do I run a profiler in Xcode?

Profiling can be started with Product > Profile (command+I) which builds the application and opens Instruments. Instruments opens profiling template view where we should select Time Profiler. Clicking on the record button in the toolbar starts the application and starts profiling it.


Video Answer


1 Answers

Here is list of tutorial, some of them text document and videos

Apple WWDC video tutorial about instrument

  1. https://developer.apple.com/videos/play/wwdc2016/418/
  2. https://developer.apple.com/videos/play/wwdc2018/410/

Official Apple Instrument document

  1. https://help.apple.com/instruments/mac/current/

this is old Apple WWDC instrument tutorial video but worth to watch for good start

  1. https://developer.apple.com/videos/play/wwdc2011/310/

--------------------------------------------------------------------------------------

Some others nice blogs you can refer:

  1. https://www.raywenderlich.com/397-instruments-tutorial-with-swift-getting-started

  2. https://medium.com/@kazmiekr/what-every-ios-developer-should-be-doing-with-instruments-d1661eeaf64f

  3. https://www.lynda.com/iOS-SDK-tutorials/Improving-iOS-performance-Xcode-Instruments/452088-2.html

  4. http://www.spotlessicode.com/blog/posts/instruments-tutorial-part-1-profiling-templates-deferred-mode-launch-instruments

like image 146
SachinVsSachin Avatar answered Sep 27 '22 01:09

SachinVsSachin