Dive into the basis for your app’s dynamic memory: the heap! Explore how to use Instruments and Xcode to measure, analyze, and fix common heap issues. We’ll also cover some techniques and best practices for diagnosing transient growth, persistent growth, and leaks in your app.
Discuss this video on the Apple Developer Forums:
https://developer.apple.com/forums/to...
Explore related documentation, sample code, and more:
The Swift Programming Language: Automatic Reference Counting: https://docs.swift.org/swift-book/doc...
Profile and optimize your game's memory: https://developer.apple.com/videos/pl...
Detect and diagnose memory issues: https://developer.apple.com/videos/pl...
iOS Memory Deep Dive: https://developer.apple.com/videos/pl...
Explore Swift performance: https://developer.apple.com/videos/pl...
Consume noncopyable types in Swift: https://developer.apple.com/videos/pl...
00:00 - Introduction
01:05 - Heap memory overview
03:45 - Tools for inspecting heap memory issues
07:40 - Transient memory growth overview
10:34 - Managing autorelease pool growth in Swift
13:57 - Persistent memory growth overview
16:00 - How the Xcode memory graph debugger works
20:15 - Reachability and ensuring memory is deallocated appropriately
21:54 - Resolving leaks of Swift closure contexts
24:13 - Leaks FAQ
26:51 - Comparing performance of weak and unowned
30:44 - Reducing reference counting overhead
32:06 - Cost of measurement
32:30 - Wrap up
More Apple Developer resources:
Video sessions: https://apple.co/VideoSessions
Documentation: https://apple.co/DeveloperDocs
Forums: https://apple.co/DeveloperForums
App: https://apple.co/DeveloperApp
Смотрите видео WWDC24: Analyze heap memory | Apple онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Apple Developer 13 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 13,20 раз и оно понравилось 39 людям.