Has there ever been a more powerful, but under-utilised tool than Instruments?
Instruments is a tool included with Xcode that helps you analyze, profile, and debug your live iOS app. Solve memory leaks. Visualize memory. Monitor disk, network, memory, and battery usage. You can even find zombies. 🧟♂️
It lets you do incredible things but is also overwhelming to new developers, in which case this Ray Wenderlich tutorial can come in pretty handy.
Here’s a great tip for anyone using Xcode: when you’re going through a list of search results, you can just delete the items you’re not interesting in. 🤯 It’s so weirdly simple and obvious but surprising.
Build-time optimization is not my favorite topic. It is truly not sexy. 🤷🏻♂️ I just want to write good code and run it without worrying about complier options and other distractions.
But I must admit that unless you love sitting around on your hands waiting to test your latest code change, this is good info to know. ⏱🤓
This post explains exactly how to measure build times, target by target and task by task. Also, how to set up warnings for specific files taking a long time to process. You can even get a nice visual report like this: