<mwlang>
hello, I’m am looking for documentation on jRuby’s profiler and was wondering if anyone could point me to the reference links that document how to use the Profiler.
<mwlang>
interesting…I didn’t realize that was the official docs site for jRuby. I was looking for something more complete like the https://ruby-doc.org/ site
<mwlang>
Even that page has only an example of how to do profileing. What I’m looking for is a way to start a profiler in the before_suite of a. test suite and then stop and print results in the after_suite block. But this page only shows a `JRuby::Profiler.profile do { .. }` block approach to wrapping code you want to profile.
<headius[m]>
A non block stop+start could be added but I don't think we have that right now
<mwlang>
adding such would bring feature parity with the ruby-prof in this area.
<headius[m]>
Ah well that is a good idea then. Could you open an issue?
<mwlang>
I can
<headius[m]>
You could try your hand at a PR too 😃
<mwlang>
I just cloned the repo and looking through it now.
<mwlang>
trying to figure out if I’d have to write, ahem, Java, or if I could write Ruby for it.
<mwlang>
I’m not a Java expert.
<headius[m]>
Maybe a little but it should be pretty easy since we have a block version already
<mwlang>
hmmm…need a 3rd Issue template for adding Feature requests. There’s only Bug Report and Report a security vulnerability.