ur5us has joined #jruby
michael_mbp has quit [Ping timeout: 246 seconds]
michael_mbp has joined #jruby
ur5us has quit [Ping timeout: 258 seconds]
ur5us has joined #jruby
ur5us has quit [Ping timeout: 258 seconds]
ur5us has joined #jruby
ur5us has quit [Ping timeout: 258 seconds]
mwlang has joined #jruby
<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> my Google-fu is failing me terribly.
<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.
<mwlang> It may indeed be easy. Looks like it’s in Ruby and start and stop both exist but are currently protected methods. https://github.com/jruby/jruby/blob/master/lib/ruby/stdlib/jruby/profiler.rb#L32-L40
<headius[m]> So you should even be able to work around it for now, that is good news
ur5us has joined #jruby
subbu is now known as subbu|away
<mwlang> yeah, I was able to work around it simply by calling those methods with send.
<mwlang> important also to pass —profile.api on command line
<lopex> numbers
ur5us_ has joined #jruby
ur5us has quit [Ping timeout: 258 seconds]