Ending the Plague of Memory Leaks
summary
Memory leaks in long‑running single page apps cause crashes and hard‑to‑reproduce failures; the concrete solution is an addon that records a heap snapshot after test suite teardown, searches for retained instances of app or addon classes, and fails CI when retained classes exist. It uses DevTools/Chrome tooling, integrates with Ember's test harness and ember test server, and speeds diagnosis from minutes to seconds. The author reports finding leaks in app code, addons, and even an Ember release and shows the addon prevents introducing new leaks: ember-cli-memory-leak-detector.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:31Heap Snapshot Tool
- 2:35The Memory Allocation Timeline
- 5:35Memory Leaks
- 11:13Using Ember
- 13:02Common Causes
- 14:19Ember Cli Memory Leak Detector
related talks
31mMemory Leaks in JavaScript
23mWarp Speed Memory Management
26mFastFlood: The Story of a Massive Memory Leak in FastBoot Land
37mLeakCanary, then what? Nuking Nasty Memory Leaks
46mFighting Memory Leaks: From Task to Victory
20mDiscover memory leaks with Testcase
24mLet's Test that Addon!
36mUsing Tests as a Tool to Wrangle Legacy Projects
