diff options
Diffstat (limited to 'activesupport/lib/active_support/testing/performance/jruby.rb')
-rw-r--r-- | activesupport/lib/active_support/testing/performance/jruby.rb | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/testing/performance/jruby.rb b/activesupport/lib/active_support/testing/performance/jruby.rb new file mode 100644 index 0000000000..5985e942f1 --- /dev/null +++ b/activesupport/lib/active_support/testing/performance/jruby.rb @@ -0,0 +1,70 @@ +module ActiveSupport + module Testing + module Performance + protected + def run_gc + GC.start + end + + class Performer; end + + class Profiler < Performer + def run + end + + def report + end + + def record + end + + protected + def output_filename(printer_class) + end + end + + module Metrics + class Base + def profile + end + + protected + def with_gc_stats + end + + class Time < Base; end + + class ProcessTime < Time + def measure; 0; end + end + + class WallTime < Time + def measure + super + end + end + + class CpuTime < Time + def measure; 0; end + end + + class Memory < Base + def measure; 0; end + end + + class Objects < Amount + def measure; 0; end + end + + class GcRuns < Amount + def measure; 0; end + end + + class GcTime < Time + def measure; 0; end + end + end + end + end + end +end |