Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu_time and allocations are 0 when JRuby is used #33471

Merged
merged 1 commit into from Jul 30, 2018

Commits on Jul 30, 2018

  1. cpu_time and allocations are 0 when JRuby is used

    According to rails#33449 and rails#33468, cpu_time and allocations are 0 when
    JRuby is used.
    
    ```ruby
    $ ruby -v
    jruby 9.2.1.0-SNAPSHOT (2.5.0) 2018-07-27 13b2df5 Java HotSpot(TM) 64-Bit Server VM 25.181-b13 on 1.8.0_181-b13 [linux-x86_64]
    $ bundle exec ruby -w -Itest test/log_subscriber_test.rb -n test_event_attributes
    Run options: -n test_event_attributes --seed 6231
    
    F
    
    Failure:
    SyncLogSubscriberTest#test_event_attributes [test/log_subscriber_test.rb:84]:
    Expected 0 to be > 0.
    
    rails test test/log_subscriber_test.rb:78
    
    Finished in 0.018983s, 52.6791 runs/s, 105.3582 assertions/s.
    1 runs, 2 assertions, 1 failures, 0 errors, 0 skips
    ```
    yahonda committed Jul 30, 2018
    Copy the full SHA
    d35b06e View commit details
    Browse the repository at this point in the history