Profiling Swift Apps
Find and Fix Problems with Your Code Using Instruments
Profiling Swift Apps is a book that helps iOS and Mac developers make sense of the profiling data Instruments generates. The book shows you how to find the most important information in the Instruments data, such as the code causing problems. Some of the things you will learn in the book include the following:
- Using the Leaks instrument to find memory leaks and find the code allocating the leaked memory.
- Using the Allocations instrument to find how much memory your app uses and find the code that allocates the most memory.
- Using the Time Profiler instrument to find the slow spots in your code.
- Using the SwiftUI instrument to find the views that update the most and find the code that causes long view updates.
After reading this book you will be able to use Instruments and find the code causing problems in your app. Finding the code you need to fix is the first step to making apps that run faster, use less memory, and don’t leak memory.
Book Contents
- A quick start guide to using Instruments that covers the most common things you’ll do with Instruments
- Launching Instruments and profiling your app
- Reading the profiling data Instruments generates
- Leaks instrument deep dive
- Allocations instrument deep dive
- Time Profiler instrument deep dive
- SwiftUI instrument deep dive