Vaibhav Gumashta
Vaibhav Gumashta

Reputation: 994

Profiling a ruby / ruby on rails application

I am looking to understand conceptually what all goes in profiling a ruby or ruby on rails program (e.g. memory usage, speed of request dispatching, speed of connecting with external programs like DB) and what are the best tools (at a conceptual and fundamental level) that are available.

Upvotes: 7

Views: 3302

Answers (4)

Siwei
Siwei

Reputation: 21549

I have investigated many tools (memory-profiler, rb-prof...) , and finally used: oink

Upvotes: 0

Mark Carey
Mark Carey

Reputation: 1587

You should look at Joe Damato's memory-profiler for Ruby

Also worth looking at is his ltrace patch

Upvotes: 1

jerhinesmith
jerhinesmith

Reputation: 15492

If you program on a Mac, you might want to check out DTrace.

I personally use linux at the moment, so I can't speak to it's worth, but I've seen it mentioned quite a few times in various Rails books.

It was originally developed by Sun to run on Solaris, but I believe it now comes pre-installed on Mac OS X Leopard.

Upvotes: 1

Gabriel Ščerbák
Gabriel Ščerbák

Reputation: 18560

I don't know if it helps, but I read somewhere article saying, that Java is the best profiler for Ruby on Rails applications. The idea was to run them on JRuby and use JProfiler or other Java profiling tools to profile your Rails application. Another possibility that I know of might be the Relic RPM, commercial application especially for profiling Rails applications.

Upvotes: 2

Related Questions