diff options
-rw-r--r-- | activesupport/lib/active_support/testing/performance/rubinius.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/testing/performance/rubinius.rb b/activesupport/lib/active_support/testing/performance/rubinius.rb index 55fdd9fc9c..2dd866aa4a 100644 --- a/activesupport/lib/active_support/testing/performance/rubinius.rb +++ b/activesupport/lib/active_support/testing/performance/rubinius.rb @@ -14,6 +14,10 @@ module ActiveSupport def profile yield end + + def loopback + @loopback ||= Rubinius::Agent.loopback + end protected # overridden by each implementation @@ -42,11 +46,15 @@ module ActiveSupport end class Memory < Base - def measure; 0; end + def measure + loopback.get("system.memory.counter.bytes").last + end end class Objects < Amount - def measure; 0; end + def measure + loopback.get("system.memory.counter.bytes").last + end end class GcRuns < Amount |