News for hackers. Stuff that matters.
Re:The Cost of Ruby 1.9.3's GC::Profiler by cheald on Monday November 19, 2012 @06:09PM (#4806803)
For what it's worth, I checked Newrelic's gem (which is what I use to monitor my GC), and it does clean up after itself by invoking GC::Profiler::clear after a run.

Still though, that's ugly. There are a number of places where Ruby as a systems scripting language (small scripts, short runtime) really clashes with Ruby as an application language (large apps, long runtime), and the GC seems to be at the heart of most of them.

Re:The Cost of Ruby 1.9.3's GC::Profiler by wpeterson on Monday November 19, 2012 @09:40PM (#4807490)
Confirmed that this only leaks memory if used incorrectly, standard implementations like Newrelic sample this safely, without leaking memory.

Here's a link to the GC profiling agent code in the Newrelic Agent:

https://github.com/newrelic/rpm/blob/master/lib/new_relic/ag...

Re:The Cost of Ruby 1.9.3's GC::Profiler by hcarvalhoalves on Monday November 19, 2012 @08:43PM (#4807351)
> There are a number of places where Ruby as a systems scripting language (small scripts, short runtime) really clashes with Ruby as an application language (large apps, long runtime) ...

I guess this sums the problem perfectly.