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

3 responses to “Graphs for ruby-prof

  1. How is is better than just using ruby-prof with KCacheGrind ?

    • Adam Sanderson

      It depends on your system and your aesthetic. On OSX, building KCacheGrind is rather a pain, and dot files are pretty easy to work with. Anyways, I would suggest trying it out, and then using whatever tools work best for you.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s