Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.5
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
Process.times returns invalid values which makes it look like it is taking 100% of CPU time. Here's the best documentation I could find:
http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_struct__tms.html
Obviously at FiveRuns we collect metrics like CPU usage so this functionality is important for customers using JRuby with our software.
Marking for 1.1.6. Ideally we could present this in a way that does not require native calls; however, I'm not sure if that's possible. At the very least, wire up "times" and tms structure in jna-posix.