From: "sax (Eric Saxby)" Date: 2013-08-22T02:05:44+09:00 Subject: [ruby-core:56772] [ruby-trunk - Bug #8805] Ruby GC::Profiler returns incorrect info on Solaris (and relatives) Issue #8805 has been updated by sax (Eric Saxby). Fantastic! I've rolled out this patch to some SmartOS hosts this morning and it fixes the GC::Profiler total_time reporting. Thank you so much! ---------------------------------------- Bug #8805: Ruby GC::Profiler returns incorrect info on Solaris (and relatives) https://bugs.ruby-lang.org/issues/8805#change-41314 Author: sax (Eric Saxby) Status: Open Priority: Normal Assignee: Category: core Target version: ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-solaris2.11] Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED We use SmartOS as our deployment platform, and noticed when attempting to roll out Ruby 2.0.0-p247 to some SmartOS hosts that garbage collection info is broken with integrations such as New Relic. Investigating further, we found that GC::Profiler.total_time always returns 0.0. >> GC::Profiler.enable => nil >> GC.start => nil >> GC::Profiler.total_time => 0.0 It may be related to this issue: https://bugs.ruby-lang.org/issues/7500 where the mechanism by which the profiler gets timestamps from the OS. -- http://bugs.ruby-lang.org/