Forum: JRuby Turning on the profiler when running in embedded mode

Posted by Trejkaz Xx (trejkaz)
on 2012-08-02 04:11
(Received via mailing list)
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
Posted by Uwe Kubosch (donv)
on 2012-08-02 14:41
(Received via mailing list)
Hi Trejkaz!

Try

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


On 2012-08-02, at 04:09, Trejkaz <trejkaz@trypticon.org> 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 Kubosch
http://ruboto.org/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.