aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/performance/rubinius.rb
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-04-03 01:09:34 +0100
committerGonçalo Silva <goncalossilva@gmail.com>2011-04-03 02:02:03 +0100
commit677ce63d92b7725b0a11facddc1ba95f50f865df (patch)
tree79dea5461f31dd47d2ab0ec523853c8b3c682873 /activesupport/lib/active_support/testing/performance/rubinius.rb
parentb8f9a4515682f2722dc6e8ff9c106f5f774e703b (diff)
downloadrails-677ce63d92b7725b0a11facddc1ba95f50f865df.tar.gz
rails-677ce63d92b7725b0a11facddc1ba95f50f865df.tar.bz2
rails-677ce63d92b7725b0a11facddc1ba95f50f865df.zip
profiling enabled under JRuby. Added documentation for workaround described in JRUBY-5650.
Diffstat (limited to 'activesupport/lib/active_support/testing/performance/rubinius.rb')
-rw-r--r--activesupport/lib/active_support/testing/performance/rubinius.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/testing/performance/rubinius.rb b/activesupport/lib/active_support/testing/performance/rubinius.rb
index b2e77b3ce9..fafa782e8d 100644
--- a/activesupport/lib/active_support/testing/performance/rubinius.rb
+++ b/activesupport/lib/active_support/testing/performance/rubinius.rb
@@ -84,19 +84,19 @@ module ActiveSupport
end
end
- class Memory < DigitalInformationUnit
+ class Memory < DigitalInformationUnit
def measure
loopback.get("system.memory.counter.bytes").last
end
end
- class Objects < Amount
+ class Objects < Amount
def measure
loopback.get("system.memory.counter.objects").last
end
end
- class GcRuns < Amount
+ class GcRuns < Amount
def measure
loopback.get("system.gc.full.count").last + loopback.get("system.gc.young.count").last
end