Eric Sven Ristad <ristad / mnemonic.com> writes:

>    Have you come across Ruby's profile facility?
> 
> I find that profiling is a useful but somewhat crude tool for tuning
> performance.  Sometimes I need to instrument specific blocks of code;
> othertimes I need to report incremental resource utilization in a
> long-running program.  Profiling, while useful in many circumstances,
> is not a replacement for instrumenting system resources.

I guess my point was that profile.rb demonstrates that you can get
some of the raw information you need. You might be able to use its
techniques to develop the specific instrumentation you need, and this
might be simpler than making the numerous changes to the interpreter
that would otherwise be required.

Dave