Turning on the profiler when running in embedded mode

Hi all.

I see that JRuby has added a built-in profiler.

I can see that adding --profile.graph works when running JRuby
standalone, but I can’t seem to find the equivalent for running in
embedded mode.

Is there a way to turn it on? (implying that I don’t want to add any
Java code.)

TX

Hi Trejkaz!

Try

scriptingContainer.getProvider().getRubyInstanceConfig().setProfilingMode(mode)

On 2012-08-02, at 04:09, Trejkaz [email protected] wrote:

I see that JRuby has added a built-in profiler.

I can see that adding --profile.graph works when running JRuby
standalone, but I can’t seem to find the equivalent for running in
embedded mode.

Is there a way to turn it on? (implying that I don’t want to add any Java code.)


Uwe K.
http://ruboto.org/