# Performance Optimization (iOS) > Instruments, Time Profiler, Allocations, rendering optimization, battery, launch time - 22 interview questions - Senior - [Interview Questions: iOS](https://sharpskill.dev/en/technologies/ios/interview-questions.md) ## 1. Which Instruments tool allows finding functions consuming the most CPU time? **Answer** Time Profiler records function calls at regular intervals and displays the time spent in each method. This tool is essential for identifying CPU bottlenecks and understanding where the app spends its resources. Other tools serve different performance aspects such as memory or system events. ## 2. What is the best time to profile memory allocations in an iOS app? **Answer** The Allocations tool should be used to measure total memory consumption, identify memory leaks, and monitor allocation patterns. It's particularly useful during extended user sessions to detect continuous memory growth. Unlike Time Profiler which measures CPU, Allocations specifically examines the memory heap. ## 3. What is the primary role of the Leaks tool in Instruments? **Answer** The Leaks tool detects allocated objects that are never released, resulting from circular references or memory management errors. It automatically analyzes the Objective-C heap and identifies orphaned memory areas. This tool is distinct from Allocations: while Allocations shows overall usage, Leaks focuses on specific leaks. Leaks progressively reduce available memory and can cause crashes. ## 19 more questions available - How to interpret Time Profiler results during profiling? - Which Instruments tool analyzes rendering performance and dropped frames? Sign up for free: https://sharpskill.dev/en/login ## Other iOS interview topics - [Swift Basics](https://sharpskill.dev/en/technologies/ios/interview-questions/swift-basics.md): 25 questions, Junior - [Swift Language Essentials](https://sharpskill.dev/en/technologies/ios/interview-questions/swift-language-essentials.md): 15 questions, Junior - [UIKit Fundamentals](https://sharpskill.dev/en/technologies/ios/interview-questions/uikit-fundamentals.md): 18 questions, Junior - [UIViewController Lifecycle](https://sharpskill.dev/en/technologies/ios/interview-questions/uiviewcontroller-lifecycle.md): 20 questions, Junior - [UserDefaults & Keychain](https://sharpskill.dev/en/technologies/ios/interview-questions/userdefaults-keychain.md): 20 questions, Junior - [Application Lifecycle](https://sharpskill.dev/en/technologies/ios/interview-questions/app-lifecycle.md): 20 questions, Junior - [Auto Layout & Constraints](https://sharpskill.dev/en/technologies/ios/interview-questions/auto-layout-constraints.md): 24 questions, Mid-Level - [UITableView & UICollectionView](https://sharpskill.dev/en/technologies/ios/interview-questions/uitableview-uicollectionview.md): 25 questions, Mid-Level - [SwiftUI Basics](https://sharpskill.dev/en/technologies/ios/interview-questions/swiftui-basics.md): 18 questions, Mid-Level - [SwiftUI State Management](https://sharpskill.dev/en/technologies/ios/interview-questions/swiftui-state-management.md): 22 questions, Mid-Level - [SwiftUI Navigation](https://sharpskill.dev/en/technologies/ios/interview-questions/swiftui-navigation.md): 18 questions, Mid-Level - [Networking & URLSession](https://sharpskill.dev/en/technologies/ios/interview-questions/networking-urlsession.md): 20 questions, Mid-Level - [Codable & JSON Parsing](https://sharpskill.dev/en/technologies/ios/interview-questions/codable-json-parsing.md): 20 questions, Mid-Level - [Core Data](https://sharpskill.dev/en/technologies/ios/interview-questions/core-data.md): 22 questions, Mid-Level - [Protocol Oriented Programming](https://sharpskill.dev/en/technologies/ios/interview-questions/protocol-oriented-programming.md): 20 questions, Mid-Level - [MVVM Architecture](https://sharpskill.dev/en/technologies/ios/interview-questions/mvvm-architecture.md): 20 questions, Mid-Level - [Push Notifications](https://sharpskill.dev/en/technologies/ios/interview-questions/push-notifications.md): 18 questions, Mid-Level - [Unit Testing & XCTest](https://sharpskill.dev/en/technologies/ios/interview-questions/unit-testing-xctest.md): 20 questions, Mid-Level - [UI Testing](https://sharpskill.dev/en/technologies/ios/interview-questions/ui-testing.md): 18 questions, Mid-Level - [Xcode & Build System](https://sharpskill.dev/en/technologies/ios/interview-questions/xcode-build-system.md): 16 questions, Mid-Level - [Swift Package Manager](https://sharpskill.dev/en/technologies/ios/interview-questions/swift-package-manager.md): 16 questions, Mid-Level - [Memory Management & ARC](https://sharpskill.dev/en/technologies/ios/interview-questions/memory-management-arc.md): 22 questions, Senior - [Combine Framework](https://sharpskill.dev/en/technologies/ios/interview-questions/combine-framework.md): 24 questions, Senior - [Concurrency & async/await](https://sharpskill.dev/en/technologies/ios/interview-questions/concurrency-async-await.md): 26 questions, Senior - [iOS Design Patterns](https://sharpskill.dev/en/technologies/ios/interview-questions/ios-design-patterns.md): 24 questions, Senior - [Security & Encryption](https://sharpskill.dev/en/technologies/ios/interview-questions/security-encryption.md): 20 questions, Senior - [SwiftUI Advanced](https://sharpskill.dev/en/technologies/ios/interview-questions/swiftui-advanced.md): 22 questions, Senior - [iOS Application Architecture](https://sharpskill.dev/en/technologies/ios/interview-questions/ios-app-architecture.md): 22 questions, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/en/technologies/ios/interview-questions/performance-optimization