How to profile JRuby code?

后端 未结 4 1000
心在旅途
心在旅途 2020-12-29 07:39

I\'d like to profile my JRuby app. For MRI I always use ruby-prof, but I don\'t think this works on JRuby. I don\'t want to use a Java-profiler, because it won\'t give me th

4条回答
  •  有刺的猬
    2020-12-29 08:17

    JRuby 1.5.5 includes a decent --profile command line flag.

    Use it like this:

    jruby --profile -S 
    
                                     
                  
提交回复
热议问题