tonyxrandall

tonyxrandall

How to detect iOS memory leaks and retain cycles using Xcode's memory graph

At DoorDash we are consistently making an effort to increase our user experience by increasing our app’s stability. A major part of this effort is to prevent, fix and remove any retain cycles and memory leaks in our large codebase. In order to detect and fix these issues, we have found the Memory Graph Debugger to be quick and easy to use. After significantly increasing our OOM-free session rate on our Dasher iOS app, we would like to share some tips on avoiding and fixing retain cycles as well as a quick introduction using Xcode’s memory graph debugger for those who are not familiar.

First Post!

bot

bot

Corresponding tweet for this thread:

Share link for this tweet.

Popular I Os topics Top

New
bot
Learn about iOS 14’s new group messaging features that make long conversations easier to manage with threads and how to add more personal...
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - Announcing Swift Algorithms
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - Celebrating Women’s History Month
New
First poster: bot
Demystify SwiftUI - WWDC 2021 - Videos - Apple Developer. Peek behind the curtain into the core tenets of SwiftUI philosophy: Identity, ...
New
AstonJ
Doesn’t have to be for coding, but just apps you’ve found useful; :smiley: I think this is great: The thing I like most about it is h...
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - Server Guides Now on Swift.org
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - Announcing SwiftNIO IMAP
New
First poster: bot
A new Swift blog post/announcement has been posted! Get the full details here: Swift.org - The Future of Foundation
New
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
AstonJ
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
New
AstonJ
In case anyone else is wondering why Ruby 3 doesn’t show when you do asdf list-all ruby :man_facepalming: do this first: asdf plugin-upd...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
PragmaticBookshelf
Author Spotlight: Peter Ullrich @PJUllrich Data is at the core of every business, but it is useless if nobody can access and analyze ...
New
CommunityNews
A Brief Review of the Minisforum V3 AMD Tablet. Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New