Ruby-prof for jruby

is there an alternative for ruby-prof (currently only has native C
bindings)
in JRuby ?
Adam

AD wrote:

is there an alternative for ruby-prof (currently only has native C
bindings) in JRuby ?

One option might be to use a normal Java profiling solution and set
everything to compile (-X+C or set property jruby.compile.mode=FORCE).
Ruby code should show up alongside Java code then.

There’s also a couple JRuby flags that could help, especially used in
concert with force compile:

–sample uses the builtin JVM sampling profiler, which isn’t terribly
accurate but can help show serious problems
–profile uses a small instrumented profiler to profile just Ruby code
(though it seems to have broken at some point).

What are others doing? Obviously dependence on C extensions is something
we’d love to discourage in the Ruby world, and there’s a whole world
of profiling tools for JVM use.

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

What are others doing? Obviously dependence on C extensions is something
we’d love to discourage in the Ruby world, and there’s a whole world
of profiling tools for JVM use.

jruby --debug -rprofile

appears to be another option

I’m still not seeing anything that’s quite as complete as ruby-prof out
there, though. Looks like you can purchse JXInsight if you want to :slight_smile:

-r

jruby --debug -rprofile

appears to be another option

And another option:
http://danlucraft.com/blog/2010/03/jruby-prof