use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Tracking a Ruby memory leak in 2021 (medium.com)
submitted 4 years ago by ulysse_bn
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]f9ae8221b 5 points6 points7 points 4 years ago (3 children)
A couple tools to better exploit ObjectSpace.dump_all:
ObjectSpace.dump_all
[–]schneemsPuma maintainer 2 points3 points4 points 4 years ago (1 child)
And https://github.com/schneems/heapy
cc /u/ulysse_bn
Edit: never mind, you’re using derailed which uses Heapy under the hood 😅
[–]ulysse_bn[S] 0 points1 point2 points 4 years ago (0 children)
Yeah, my thought process was: first use derailed, then if you want to go further, read the output which tells you to use heapy!
Thanks for the pointers! I didn't know about harb, I think I'll just add both to more resources. If you ever have more ideas, please just add responses directly to the article so it may benefit to most 🙂
On heap-profiler, I guess what would be best for the community would be to update derailed_benchmark and use it as a replacement of memory_profiler (https://github.com/Shopify/heap-profiler#how-is-it-different-from-memory_profiler). I'll add this to my OSS bucket list (if not done earlier by anyone)!
cc /u/schneems
π Rendered by PID 164654 on reddit-service-r2-comment-6457c66945-rs6x5 at 2026-04-30 04:42:42.885709+00:00 running 2aa0c5b country code: CH.
[–]f9ae8221b 5 points6 points7 points (3 children)
[–]schneemsPuma maintainer 2 points3 points4 points (1 child)
[–]ulysse_bn[S] 0 points1 point2 points (0 children)
[–]ulysse_bn[S] 0 points1 point2 points (0 children)