Meta

Meta's Automatic memory leak detection on iOS

Original post Automatic memory leak detection on iOS

Article Summary

Grzegorz Pstrucha from Facebook reveals how manual memory leak detection was eating up engineering time. His team built three open-source tools that automate the entire process.

Facebook's iOS app faced constant memory leaks from dozens of engineers working across the codebase. Traditional Instruments-based detection required tedious manual work for every check. The team built an automated system that finds retain cycles at runtime and assigns fixes to the right developers.

Key Takeaways

Critical Insight

Facebook open-sourced three tools (FBRetainCycleDetector, FBAllocationTracker, FBMemoryProfiler) that automatically find and route iOS memory leaks without manual intervention.

Continue reading

The article reveals a clever blackbox technique using fake blocks and release detectors that solves a tricky problem with block introspection.

This page summarizes “Automatic memory leak detection on iOS” by Meta, published Apr 13, 2016. All credit for the original work goes to the authors.

Read the original on engineering.fb.com (opens in new tab)

AI tools for iOS

Browse all AI tools →