aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/testing/performance/rubinius.rb8
1 files changed, 6 insertions, 2 deletions
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