Monthly Archives: July 2010

Graphs for ruby-prof

I recently found myself in the unenviable position of having to dig into some performance issues. After wallowing in self pity for a while, I whipped up a dot graph printer:

Example ruby-prof dot graph

As an added bonus, it groups method calls by class, which helps when reasoning about performance. Roger Pack kindly already merged it into the github repository, so you can try it out (you’ll have to build the gem from source until someone pushes 0.9.0).


Filed under Uncategorized

Migrating Ruby Gems Between Ruby Versions

I found this quite handy after install ruby enterprise edition:

ree -S gem install /Library/Ruby/Gems/1.8/cache/*

Where ree is the ruby environment you want to copy your gems to and /Library/Ruby/Gems/1.8/cache/* is the path to your existing gems. Should also work for MacRuby and friends (assuming the gems will build on that environment anyways).

Leave a comment

Filed under Uncategorized