From 417b2baf0fafc48dbfdab8a81b15836599a0613e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Fri, 25 Mar 2011 18:01:39 +0000 Subject: added gc info (runs, time) to rubinius' benchmarks --- activesupport/lib/active_support/testing/performance/rubinius.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/testing/performance/rubinius.rb b/activesupport/lib/active_support/testing/performance/rubinius.rb index 2dd866aa4a..ef4d2bd493 100644 --- a/activesupport/lib/active_support/testing/performance/rubinius.rb +++ b/activesupport/lib/active_support/testing/performance/rubinius.rb @@ -58,11 +58,15 @@ module ActiveSupport end class GcRuns < Amount - def measure; 0; end + def measure + loopback.get("system.gc.full.count").last + loopback.get("system.gc.young.count").last + end end class GcTime < Time - def measure; 0; end + def measure + loopback.get("system.gc.full.wallclock").last + loopback.get("system.gc.young.wallclock").last + end end end end -- cgit v1.2.3