JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-4276

Set org.jruby.runtime.load.LoadService.DEBUG_LOAD_TIMINGS at run time

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.4
    • Fix Version/s: JRuby 1.5
    • Component/s: Miscellaneous
    • Labels:
      None
    • Environment:
      github trunk, Java 6, Mac OS X 10.6.2
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      As the existing comment suggests, this can be a run time option. Is there a good reason that it isn't?

      The attached patch adds a new property jruby.debug.loadService.timing to set org.jruby.runtime.load.LoadService.DEBUG_LOAD_TIMINGS at run time.

      http://gist.github.com/242782

        Activity

        Hide
        Vladimir Sizikov added a comment -

        Fixed in rev. bbc8136 on master branch.

        Based on patch by Hiro Asari (thanks!), plus additional modifications.

        Here's an example on how to enable this and other LoadService's interesting logging:

        jruby -b \
          -J-Djruby.debug.loadService.timing=true \
          -J-Djruby.debug.loadService=true -e "require 'yaml'"
        
        Show
        Vladimir Sizikov added a comment - Fixed in rev. bbc8136 on master branch. Based on patch by Hiro Asari (thanks!), plus additional modifications. Here's an example on how to enable this and other LoadService's interesting logging: jruby -b \ -J-Djruby.debug.loadService.timing= true \ -J-Djruby.debug.loadService= true -e "require 'yaml'"

          People

          • Assignee:
            Vladimir Sizikov
            Reporter:
            Hiro Asari
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: