TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Visualizing memory leaks in Ruby

45 pointsby cirwinabout 12 years ago

6 comments

VeejayRampayabout 12 years ago
Great project. I hope the community can make good use of this to make sure the different libraries and gems and pieces of code leak as much memory as possible.<p>Thank you for putting the work in and making Ruby better.
评论 #5321830 未加载
throwaway54-762about 12 years ago
A better title might be "visualizing the object-reference graph in Ruby;" debugging memory leaks is a neat side effect. That being said, it's an interesting little project.
gngealabout 12 years ago
An unfortunate header, innit? One wonders whether to parse it as "(Visualizing memory leaks) in Ruby" or as "Visualizing (memory leaks in Ruby)".
评论 #5321769 未加载
markov_twainabout 12 years ago
I randomly stumbled across this gist by tenderlove <a href="https://gist.github.com/tenderlove/4576780" rel="nofollow">https://gist.github.com/tenderlove/4576780</a> that displays references as a tree view using d3.js. I think that this gist in particular is pointing out a bug in that the "references" for Fixnums (also Symbols) in an array aren't returned by ObjectSpace.find_references.
petercooperabout 12 years ago
Ruby 2.0 has a similar feature built in, although round the other way: ObjectSpace.reachable_objects_from(obj) .. coupled with ObjectSpace.memsize_of() this can be used to do some memory leak analysis.<p>We also get GC.stat[:total_allocated_object] and GC.stat[:total_freed_object]
ptoltsabout 12 years ago
Interesting project. Ruby memory leaks really are brutal!