Preface Part Ⅰ Getting Started 1. Performance in Mobile Apps Defining Performance Performance Metrics Memory Power Consumption Initialization Time Execution Speed Responsiveness Local Storage Interoperability Network Condition Bandwidth Data Refresh Multiuser Support Single Sign-on Security Crashes App Profiling Sampling Instrumentation Measurement Project and Code Setup Crash Reporting Setup Instrumenting Your App Logging Summary Part Ⅱ Core Optimizations 2. Memory Management Memory Consumption Stack Size Heap Size Memory Management Model Autoreleasing Objects Autorelease Pool Blocks Automatic Reference Counting Rules of ARC Reference Types Variable Qualifiers Property Qualifiers Getting Your Hands Dirty Photo Model Storyboard Update Method Implementations Output Analysis Zombies Rules of Memory Management Retain Cycles Rules to Avoid Retain Cycles Common Scenarios for Retain Cycles Observers Returning Errors Weak Type: id Solution to the Problem Object Longevity and Leaks Singletons Finding Mystery Retains Best Practices Memory Usage in Production Summary 3. Energy cpu …… Part Ⅲ iOS Performance Part Ⅳ Beyond code Part Ⅴ iOS 9 Index