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.
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.
"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.
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.
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.
Here is list of tutorial, some of them text document and videos
Apple WWDC video tutorial about instrument
Official Apple Instrument document
this is old Apple WWDC instrument tutorial video but worth to watch for good start
Some others nice blogs you can refer:
https://www.raywenderlich.com/397-instruments-tutorial-with-swift-getting-started
https://medium.com/@kazmiekr/what-every-ios-developer-should-be-doing-with-instruments-d1661eeaf64f
https://www.lynda.com/iOS-SDK-tutorials/Improving-iOS-performance-Xcode-Instruments/452088-2.html
http://www.spotlessicode.com/blog/posts/instruments-tutorial-part-1-profiling-templates-deferred-mode-launch-instruments
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With