A Tool To Automatically Detect Memory Leaks
Maybe I’m weird, but I kind of love memory leaks. They’re a fun detective game. It’s a thrill to spot them in the wild: a weeeeird bug, such as behaviour in the wrong place, or an action mysteriously firing twice. The giddy excitement when you realise the culprit is a memory leak. The godlike feeling of triumph when you find the source and fix it. Today, we're going to build a system that detects leaks in your app automatically. With about 30 lines of code. “But Jacob”, you ask, “why would you deprive yourself of the pleasure of finding leaks?” By the time I’ve had my fun, we’ve left thousands of annoyed DAUs in our wake. And we made our product manager sad... Continue reading this post for free in the Substack app |